diff options
-rw-r--r-- | src/gui/panel.c | 2 |
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); |