about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-01-03 00:56:54 +0000
committerMarco Peereboom <marco@conformal.com>2011-01-03 00:56:54 +0000
commit99a94fef99648631496347b7e66adc48dccc6892 (patch)
tree849024b6bacc86ae9ae4c0d63ef6861b8cd6de5c
parentabbca62c9b906f535420c1c2ae5564630e95a042 (diff)
downloadxombrero-99a94fef99648631496347b7e66adc48dccc6892.tar.gz
fix a stupid segfault
-rw-r--r--xxxterm.c2
1 files changed, 1 insertions, 1 deletions
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);