r19012: Fix an uninitialized variable
authorVolker Lendecke <vlendec@samba.org>
Sat, 30 Sep 2006 17:20:02 +0000 (17:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:01 +0000 (12:15 -0500)
(This used to be commit 46cae04fbee1a2e04883085294be4f75b2d6d56c)

source3/libgpo/gpo_filesync.c

index 36c538dc51225029ea0ccc6c3bebddeb0887e7fd..e97562c93f30881f5c2e236257346e3328a93ecf 100644 (file)
@@ -40,7 +40,8 @@ NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx,
                       const char *unix_path)
 {
        NTSTATUS result;
-       int fnum, fd;
+       int fnum;
+       int fd = 0;
        char *data = NULL;
        static int io_bufsize = 64512;
        int read_size = io_bufsize;