From: Date: May 22 2007 10:26am Subject: bk commit into 5.0 tree (mhansson:1.2490) BUG#28250 List-Archive: http://lists.mysql.com/commits/27113 X-Bug: 28250 Message-Id: <200705220826.l4M8QdI3007301@dl145s.mysql.com> Below is the list of changes that have just been committed into a local 5.0 repository of mhansson. When mhansson does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-05-22 10:26:21+02:00, mhansson@stripped +1 -0 Bug #28250: Run-Time Check Failure #3 - The variable 'value' is being used without being def Inside method Item_func_unsigned::val_int, the variable value can be returned without being assigned. This gives a run-time error when building debug binaries using Visual C++ 2005. Solution: Initialize value to 0. sql/item_func.cc@stripped, 2007-05-22 10:26:16+02:00, mhansson@stripped +1 -1 Bug #28250: Initialized value to 0. # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: mhansson # Host: dl145s.mysql.com # Root: /users/mhansson/mysql/push/bug28250/my50-bug28250 --- 1.341/sql/item_func.cc 2007-05-11 17:56:20 +02:00 +++ 1.342/sql/item_func.cc 2007-05-22 10:26:16 +02:00 @@ -988,7 +988,7 @@ void Item_func_unsigned::print(String *s longlong Item_func_unsigned::val_int() { - longlong value; + longlong value= 0; int error; if (args[0]->cast_to_int_type() == DECIMAL_RESULT)