s3-eventlogadm: Fix Coverity #938: UNINIT.
authorGünther Deschner <gd@samba.org>
Wed, 16 Sep 2009 08:15:46 +0000 (10:15 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 16 Sep 2009 08:29:43 +0000 (10:29 +0200)
Guenther

source3/utils/eventlogadm.c

index d134ea8fea27fe123632c40f6a9d8c27b6355c2c..7fc04b008e27867f15026c121993687dd3547735 100644 (file)
@@ -91,7 +91,7 @@ static int DoWriteCommand( int argc, char **argv, bool debugflag, char *exename
        char linein[1024];
        bool is_eor;
        struct eventlog_Record_tdb ee;
-       uint32_t record_number;
+       uint32_t record_number = 0;
        TALLOC_CTX *mem_ctx = talloc_tos();
 
        f1 = stdin;