aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filter-source.c')
-rw-r--r--filter/filter-source.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/filter/filter-source.c b/filter/filter-source.c
index 83428fe09c..dff970b9a5 100644
--- a/filter/filter-source.c
+++ b/filter/filter-source.c
@@ -275,7 +275,11 @@ get_widget (FilterElement *fe)
} else {
gtk_option_menu_set_history (GTK_OPTION_MENU (omenu), 0);
g_free (fs->priv->current_url);
- fs->priv->current_url = g_strdup (first->url);
+
+ if (first)
+ fs->priv->current_url = g_strdup (first->url);
+ else
+ fs->priv->current_url = NULL;
}
return omenu;