From: Subrata <sub...@us...> - 2007-07-09 07:01:01
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/lseek In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv24146/ltp/testcases/kernel/syscalls/lseek Modified Files: lseek09.c Log Message: "hd...@us..." fixed unitialized variable useage in "lseek09" testcase Index: lseek09.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/lseek/lseek09.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lseek09.c 26 Mar 2003 22:21:25 -0000 1.3 --- lseek09.c 9 Jul 2007 07:00:47 -0000 1.4 *************** *** 148,152 **** * Read the data byte from this location. */ ! read_buf[0] = '\0'; if (read(fildes, &read_buf, (file_size - 3)) < 0) { tst_brkm(TFAIL, cleanup, --- 148,152 ---- * Read the data byte from this location. */ ! memset(read_buf, 0, sizeof(read_buf)); if (read(fildes, &read_buf, (file_size - 3)) < 0) { tst_brkm(TFAIL, cleanup, |