[PATCH:libxkbfile] Remove unnecessary check.

Peter Hutterer peter.hutterer at who-t.net
Wed Nov 26 14:08:48 PST 2014


On Wed, Nov 26, 2014 at 02:33:38PM +0100, Thomas Klausner wrote:
> From: Jörg Sonnenberger <joerg at NetBSD.org>
> 
> The vmods member of XkbNamesPtr is an array and thus never NULL.
> 
> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>

   8a2381c..9fa0438  master -> master

thanks

Cheers,
   Peter

> ---
>  src/cout.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/cout.c b/src/cout.c
> index aa1b22d..9e09fd9 100644
> --- a/src/cout.c
> +++ b/src/cout.c
> @@ -45,7 +45,7 @@ WriteCHdrVMods(FILE *file, Display *dpy, XkbDescPtr xkb)
>  {
>      register int i, nOut;
>  
> -    if ((!xkb) || (!xkb->names) || (!xkb->names->vmods))
> +    if ((!xkb) || (!xkb->names))
>          return False;
>      for (i = nOut = 0; i < XkbNumVirtualMods; i++) {
>          if (xkb->names->vmods[i] != None) {
> -- 
> 2.1.3
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list