s3 torture: Fix unitialized variable to avoid closing a random fnum
authorTim Prouty <tprouty@samba.org>
Thu, 12 Mar 2009 23:51:20 +0000 (16:51 -0700)
committerTim Prouty <tprouty@samba.org>
Thu, 12 Mar 2009 23:51:20 +0000 (16:51 -0700)
source3/torture/torture.c

index 10e541f3845c13e2e141f05dd083dbba6f0b108f..64dfb5224c8e241928560bf828eb7a4bc0d67d79 100644 (file)
@@ -4160,7 +4160,7 @@ static bool run_simple_posix_open_test(int dummy)
        const char *dname = "\\posix.dir";
        uint16 major, minor;
        uint32 caplow, caphigh;
-       int fnum1;
+       int fnum1 = -1;
        bool correct = false;
 
        printf("Starting simple POSIX open test\n");