Whamcloud - gitweb
Branch b_release_1_8_1
authorjohann <johann>
Thu, 28 May 2009 12:49:01 +0000 (12:49 +0000)
committerjohann <johann>
Thu, 28 May 2009 12:49:01 +0000 (12:49 +0000)
b=18092

Fix following warning:
test_lock_cancel.c: In function 'main':
test_lock_cancel.c:109: warning: 'fd' may be used uninitialized in this function
make[5]: *** [test_lock_cancel.o] Error 1

lustre/liblustre/tests/mpi/test_lock_cancel.c

index 338b5e3..e1d4bc3 100644 (file)
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
                 {"dumpfile", 1, 0, 0},
                 {0, 0, 0, 0}
         };
-       int fd;
+       int fd = 0;
         long time1, time2;
         struct stat statbuf;