From 0b780f8cc8bc2606fc3173628c4d3065aae190f8 Mon Sep 17 00:00:00 2001 From: walter harms Date: Sun, 7 Nov 2010 18:51:19 +0100 Subject: remove strcmp in src/ResConfig.c Make remainder check like in the rest of code and replace strcmp() Signed-off-by: walter harms Reviewed-by: Mikhail Gusarov Signed-off-by: Alan Coopersmith --- src/ResConfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResConfig.c b/src/ResConfig.c index 7514754..63afb18 100644 --- a/src/ResConfig.c +++ b/src/ResConfig.c @@ -746,7 +746,7 @@ _search_widget_tree ( /* * this case covers resources of only one level (eg. *background) */ - if (strcmp (remainder, "") == 0) { + if (remainder[0] == 0) { _set_resource_values (w, resource, value, last_part); if (last_token == '*') _apply_values_to_children (parent, remainder, resource, -- cgit v1.2.3