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 80bf1e91c6c3cb570a57487fbc89080d904bf39c..d4a3c947579aacc9e1660901727413e18de2e2fc 100644 (file)
@@ -285,7 +285,7 @@ static int create_socket() {
        struct sockaddr_in addr_i;
        struct hostent *hp;
 
        struct sockaddr_in addr_i;
        struct hostent *hp;
 
-       int new_sock;
+       int new_sock = -1;
 
        /*debug_set_mode(TRUE);*/
        if (! Socket) {
 
        /*debug_set_mode(TRUE);*/
        if (! Socket) {
index b6265e98f1a850cb1ceeb2034acf937ff945abf5..48a7a682ed1762a69b758cefb4ea58dc4a9aad71 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;
   int res;
   unsigned long i;
   size_t cur_offset;
-  char * dest;
+  char * dest = NULL;
   size_t size;
 
   size = 0;
   size_t size;
 
   size = 0;
index 02259a2d2f1e2aa030f176436dba0a71b83285e2..b8fb04a237ec17453a8082ac6efe9d87a37fd1c4 100644 (file)
@@ -207,7 +207,7 @@ gtk_hotkey_key_file_registry_real_store_hotkey (GtkHotkeyRegistry   *base,
        GKeyFile                                        *keyfile;
        GFile                                           *file, *home;
        GError                                          *tmp_error;
        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);
        
        
        g_return_val_if_fail (GTK_HOTKEY_IS_INFO (info), FALSE);