xkb: don't call atoi(NULL) when parsing argv
authorJulien Cristau <jcristau@debian.org>
Mon, 1 Jul 2013 17:39:30 +0000 (19:39 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Jul 2013 05:12:29 +0000 (15:12 +1000)
commita2d6932ad48f2cbfcc4c5fb8272e47106d08ac78
treeb5adaba1b219307de2694a34174773a480c8bcb1
parent77e51d5bbb97eb5c9d9dbff9a7c44d7e53620e68
xkb: don't call atoi(NULL) when parsing argv

If the -ardelay or -arinterval options have no argument, there's no
point trying to read it.

See
http://www.forallsecure.com/bug-reports/feb3db57fc206d8df22ca53a6907f74973876272/

Reported-by: Alexandre Rebert <alexandre@cmu.edu>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
xkb/xkbInit.c