Fix possibly uninitialized variables; patch by Christian Hesse
authorColin Leroy <colin@colino.net>
Thu, 19 Jun 2014 05:52:29 +0000 (07:52 +0200)
committerColin Leroy <colin@colino.net>
Thu, 19 Jun 2014 05:52:29 +0000 (07:52 +0200)
src/plugins/clamd/libclamd/clamd-plugin.c
src/plugins/mailmbox/mailmbox.c
src/plugins/notification/gtkhotkey/gtk-hotkey-key-file-registry.c

index 80bf1e9..d4a3c94 100644 (file)
@@ -285,7 +285,7 @@ static int create_socket() {
        struct sockaddr_in addr_i;
        struct hostent *hp;
 
-       int new_sock;
+       int new_sock = -1;
 
        /*debug_set_mode(TRUE);*/
        if (! Socket) {
index b6265e9..48a7a68 100644 (file)
@@ -1139,7 +1139,7 @@ static int claws_mailmbox_expunge_to_file_no_lock(char * dest_filename, int dest
   int res;
   unsigned long i;
   size_t cur_offset;
-  char * dest;
+  char * dest = NULL;
   size_t size;
 
   size = 0;
index 02259a2..b8fb04a 100644 (file)
@@ -207,7 +207,7 @@ gtk_hotkey_key_file_registry_real_store_hotkey (GtkHotkeyRegistry   *base,
        GKeyFile                                        *keyfile;
        GFile                                           *file, *home;
        GError                                          *tmp_error;
-       gchar                                           *file_path, *group;
+       gchar                                           *file_path, *group = NULL;
        
        
        g_return_val_if_fail (GTK_HOTKEY_IS_INFO (info), FALSE);