summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-08-19 22:35:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-08-19 22:35:53 (GMT)
commitd8e29f090012b99c220acb9fd56fe293e29f7903 (patch)
treef7f146018acf80729ad319161300c4367d138092
parent0f0b27448c72b979b7153aa83647612f335995ce (diff)
Handled empty strings when filtering a panel.
-rw-r--r--src/gui/panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/panel.c b/src/gui/panel.c
index 04f4844..18ecbb0 100644
--- a/src/gui/panel.c
+++ b/src/gui/panel.c
@@ -422,7 +422,7 @@ static void gtk_panel_item_update_filtered(GPanelItem *item, const char *filter)
if (item->filter != NULL)
free(item->filter);
- item->filter = strdup(filter);
+ item->filter = (filter ? strdup(filter) : NULL);
G_PANEL_ITEM_GET_CLASS(item)->update_filtered(item);