libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit 7497a4c48a1db5f92e2a007eb2f3f91f07b85d66
parent 9363933314d6131cb69c9e9985b8f698f30ea2fe
Author: sqweek <sqweek@gmail.com>
Date:   Sat, 20 Sep 2008 21:59:34 +0800

Fix argv0 initialisation so it doesn't break ixpc -a <foo>.

Diffstat:
include/ixp_local.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ixp_local.h b/include/ixp_local.h @@ -5,7 +5,7 @@ char *argv0; #define ARGBEGIN \ int _argtmp=0, _inargv=0; char *_argv=nil; \ - if(!argv0) argv0=*argv; argv++, argc--; \ + if(!argv0) {argv0=*argv; argv++, argc--;} \ _inargv=1; USED(_inargv); \ while(argc && argv[0][0] == '-') { \ _argv=&argv[0][1]; argv++; argc--; \