s3: Fix an uninitialized variable
authorVolker Lendecke <vl@samba.org>
Fri, 20 May 2011 13:21:43 +0000 (15:21 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 20 May 2011 11:22:27 +0000 (13:22 +0200)
source3/smbd/reply.c

index fc381d89e7f1e39de51933d350a21879466611b3..99ab4ca34b7fe98479063f50dce505365f7aaf21 100644 (file)
@@ -5815,7 +5815,7 @@ static void rename_open_files(connection_struct *conn,
        files_struct *fsp;
        bool did_rename = False;
        NTSTATUS status;
-       uint32_t new_name_hash;
+       uint32_t new_name_hash = 0;
 
        for(fsp = file_find_di_first(conn->sconn, lck->id); fsp;
            fsp = file_find_di_next(fsp)) {