From: sanja Date: December 16 2005 9:07pm Subject: bk commit into 5.0 tree (bell:1.1983) BUG#14904 List-Archive: http://lists.mysql.com/commits/206 X-Bug: 14904 Message-Id: <20051216210722.83BC3456028@sanja.is.com.ua> Below is the list of changes that have just been committed into a local 5.0 repository of bell. When bell 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 1.1983 05/12/16 23:07:16 bell@stripped +1 -0 Avoiding conditional jump on uninitialized variable (BUG#14904). mysys/my_copy.c 1.14 05/12/16 23:07:12 bell@stripped +1 -2 Avoiding conditional jump on uninitialized variable (BUG#14904). # 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: bell # Host: sanja.is.com.ua # Root: /home/bell/mysql/bk/work-bug2-5.0 --- 1.13/mysys/my_copy.c 2005-07-04 23:09:44 +03:00 +++ 1.14/mysys/my_copy.c 2005-12-16 23:07:12 +02:00 @@ -53,7 +53,7 @@ int my_copy(const char *from, const char *to, myf MyFlags) { uint Count; - my_bool new_file_stat; /* 1 if we could stat "to" */ + my_bool new_file_stat= 0; /* 1 if we could stat "to" */ int create_flag; File from_file,to_file; char buff[IO_SIZE]; @@ -62,7 +62,6 @@ DBUG_PRINT("my",("from %s to %s MyFlags %d", from, to, MyFlags)); from_file=to_file= -1; - LINT_INIT(new_file_stat); DBUG_ASSERT(!(MyFlags & (MY_FNABP | MY_NABP))); /* for my_read/my_write */ if (MyFlags & MY_HOLD_ORIGINAL_MODES) /* Copy stat if possible */ new_file_stat= test(my_stat((char*) to, &new_stat_buff, MYF(0)));