From 99a94fef99648631496347b7e66adc48dccc6892 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Mon, 3 Jan 2011 00:56:54 +0000 Subject: fix a stupid segfault --- xxxterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxxterm.c b/xxxterm.c index 8e74339..2fa10d0 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -3767,7 +3767,7 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t) gtk_widget_hide(t->spinner); #endif s_loading = gtk_label_get_text(GTK_LABEL(t->label)); - if (!strcmp(s_loading, "Loading")) + if (s_loading && !strcmp(s_loading, "Loading")) gtk_label_set_text(GTK_LABEL(t->label), "(untitled)"); default: gtk_widget_set_sensitive(GTK_WIDGET(t->stop), FALSE); -- cgit 1.4.1-2-gfad0