fix bugs 73, 'Crash when selecting top-level folder'
authorPaul Mangan <paul@claws-mail.org>
Thu, 6 Mar 2003 15:23:44 +0000 (15:23 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 6 Mar 2003 15:23:44 +0000 (15:23 +0000)
src/folderview.c

index 91210ff..6883db1 100644 (file)
@@ -1753,7 +1753,8 @@ static void folderview_selected(GtkCTree *ctree, GtkCTreeNode *row,
        }
 
        /* Open Folder */
-       buf = g_strdup_printf(_("Opening Folder %s..."), item->path);
+       buf = g_strdup_printf(_("Opening Folder %s..."), item->path ? 
+                                       item->path : "(null)");
        debug_print("%s\n", buf);
        STATUSBAR_PUSH(folderview->mainwin, buf);
        g_free(buf);