+2003-03-03 [christoph] 0.8.10claws77
+
+ * src/summaryview.c
+ * src/common/utils.c
+ fix segfault when opening the root news folder
+
2003-03-03 [christoph] 0.8.10claws76
* src/mainwindow.[ch]
const gchar *p = group;
const gchar *last;
+ g_return_val_if_fail(group != NULL, NULL);
+
last = group + strlen(group);
abbrev_group = ap = g_malloc(strlen(group) + 1);
}
if (summaryview->folder_item->folder->type == F_NEWS) {
- gchar *group;
- group = get_abbrev_newsgroup_name
- (g_basename(summaryview->folder_item->path),
- prefs_common.ng_abbrev_len);
- gtk_label_set(GTK_LABEL(summaryview->statlabel_folder), group);
- g_free(group);
+ if (summaryview->folder_item->path != NULL) {
+ gchar *group;
+ group = get_abbrev_newsgroup_name
+ (g_basename(summaryview->folder_item->path),
+ prefs_common.ng_abbrev_len);
+ gtk_label_set(GTK_LABEL(summaryview->statlabel_folder), group);
+ g_free(group);
+ } else {
+ gtk_label_set(GTK_LABEL(summaryview->statlabel_folder), "");
+ }
} else {
gtk_label_set(GTK_LABEL(summaryview->statlabel_folder),
summaryview->folder_item->path);