[easytag/wip/clang-analyzer: 6/7] Avoid comparison with uninitialized values



commit 1697e4e574a0e8b3c03e5fd4b375bf9022e73aa4
Author: David King <amigadave amigadave com>
Date:   Sat Aug 10 23:16:20 2013 +0100

    Avoid comparison with uninitialized values
    
    Found with the Clang static analyzer.

 src/misc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index f477204..3893452 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -3290,9 +3290,9 @@ static void
 Load_Filename_Set_Filenames (void)
 {
     gint row;
-    ET_File   *ETFile;
+    ET_File *ETFile = NULL;
     File_Name *FileName;
-    gchar *list_text;
+    gchar *list_text = NULL;
     gint rowcount;
     gboolean found;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]