]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix uninitialized stack variable in bextract
authorKern Sibbald <kern@sibbald.com>
Sat, 2 Apr 2011 17:21:20 +0000 (19:21 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:44:32 +0000 (14:44 +0200)
bacula/src/stored/bextract.c

index ca65673e6c62a94ea3da95889f1aaf4133db2ced..286c474c44c3840d3d9ccd8f8ff04178207eb7bf 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
@@ -411,7 +411,7 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec)
 #ifdef HAVE_LIBZ
       if (extract) {
          uLong compress_len = compress_buf_size;
-         int stat;
+         int stat = Z_BUF_ERROR;
 
          if (rec->maskedStream == STREAM_SPARSE_GZIP_DATA) {
             ser_declare;