[PATCH libXt] remove strcmp in src/ResConfig.c

Alan Coopersmith alan.coopersmith at oracle.com
Wed Nov 10 22:12:49 PST 2010


walter harms wrote:
> 
> ake remainder check like in the rest of code and replace strcmp()
> 
> Signed-off-by: walter harms <wharms at bfs.de>
> 
> 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,

Thanks - pushed to git master.

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list