shell: Fix warning in renderer
This commit is contained in:
parent
3fb4d4af27
commit
6653f3276e
1 changed files with 4 additions and 1 deletions
|
@ -148,7 +148,10 @@ shell_search_renderer_set_layout (ShellSearchRenderer *cell, GtkWidget *widget)
|
|||
|
||||
full_string = priv->search_target;
|
||||
|
||||
needle = g_utf8_casefold (priv->search_string, -1);
|
||||
if (priv->search_string != NULL)
|
||||
needle = g_utf8_casefold (priv->search_string, -1);
|
||||
else
|
||||
needle = NULL;
|
||||
haystack = g_utf8_casefold (full_string, -1);
|
||||
|
||||
/* clear any previous attributes */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue