[PATCH]llibXt-1.0.8/src/ResConfig.c simplify strcmp()
walter harms
wharms at bfs.de
Fri Oct 22 10:30:41 PDT 2010
the rest of the code uses remainder[0], no need for strcmp
re,
wh
Signed-off-by: wharms at bfs.de
--- 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,
More information about the xorg-devel
mailing list