the rest of the code uses remainder[0], no need for strcmp
re,
wh
Signed-off-by: [email protected]
--- libXt-1.0.8/src/ResConfig.c.org 2010-09-22 22:26:35.000000000 +0200
+++ libXt-1.0.8/src/ResConfig.c 2010-10-20 21:14:45.000000000 +0200
@@ -748,7 +748,7 @@
/*
* 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,
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel