summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwalter harms <wharms@bfs.de>2010-11-07 18:51:19 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-10 22:12:05 -0800
commit0b780f8cc8bc2606fc3173628c4d3065aae190f8 (patch)
treed640dae79dfa208895969d60269f5a0a78e0c3fa
parent59598f20ba160fd92abcf88a30f0008425e7b1ec (diff)
remove strcmp in src/ResConfig.c
Make remainder check like in the rest of code and replace strcmp() Signed-off-by: walter harms <wharms@bfs.de> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/ResConfig.c2
1 files changed, 1 insertions, 1 deletions
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,