]> saetta.ns0.it Git - zakconfi/gui/commitdiff
Adjustments.
authorAndrea Zagli <azagli@libero.it>
Wed, 28 Sep 2016 17:33:30 +0000 (19:33 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 28 Sep 2016 17:33:30 +0000 (19:33 +0200)
src/main.c

index a2cda03b064fe5eba6e8e265b4ddadb1079d21b1..97da1c215682f9cd5c5c5f8ef3e66472d4926013 100644 (file)
@@ -1239,7 +1239,7 @@ main (int argc, char **argv)
        if (cnc_string != NULL)
                {
                        confi = zak_confi_new (cnc_string);
-                       if (confi!= NULL)
+                       if (confi != NULL)
                                {
                                        if (fill_trFolders (filter))
                                                {
@@ -1252,6 +1252,11 @@ main (int argc, char **argv)
                                                        gtk_statusbar_push (GTK_STATUSBAR (stbar), 0,
                                                                                                g_strconcat ("Connection string: ", cnc_string, NULL));
                                                }
+                                       g_object_unref (confi);
+                               }
+                       else
+                               {
+                                       g_warning ("No ZakConfi create from connection string «%s».", cnc_string);
                                }
                }