summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1e54657)
* src/summaryview.c
* src/common/utils.c
fix segfault when opening the root news folder
+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]
2003-03-03 [christoph] 0.8.10claws76
* src/mainwindow.[ch]
MICRO_VERSION=10
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=10
INTERFACE_AGE=0
BINARY_AGE=0
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
const gchar *p = group;
const gchar *last;
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);
last = group + strlen(group);
abbrev_group = ap = g_malloc(strlen(group) + 1);
}
if (summaryview->folder_item->folder->type == F_NEWS) {
}
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);
} else {
gtk_label_set(GTK_LABEL(summaryview->statlabel_folder),
summaryview->folder_item->path);