diff options
Diffstat (limited to 'src/ResConfig.c')
-rw-r--r-- | src/ResConfig.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ResConfig.c b/src/ResConfig.c index a6a27e9..c3bbd37 100644 --- a/src/ResConfig.c +++ b/src/ResConfig.c @@ -665,10 +665,12 @@ _search_widget_tree(Widget w, char *resource, char *value) Widget parent = w; char *last_part; char *remainder = NULL; - char last_token; char *loose, *tight; int loose_len, tight_len; + if (resource == NULL) + return; + /* * Find the root of the tree given any widget */ @@ -705,6 +707,8 @@ _search_widget_tree(Widget w, char *resource, char *value) * etc.) */ if (remainder) { + char last_token; + last_token = _get_last_part(remainder, &last_part); /* * this case covers resources of only one level (eg. *background) |