changeset: 104:e2cdba30ec8a
user: sqweek <sqweek_AT_gmail.com>
date: Sat Sep 20 21:59:34 2008 +0800
files: include/ixp_local.h
description:
Fix argv0 initialisation so it doesn't break ixpc -a <foo>.
diff -r 39a592508b0d -r e2cdba30ec8a include/ixp_local.h
--- a/include/ixp_local.h Sat Sep 20 11:04:28 2008 +0800
+++ b/include/ixp_local.h Sat Sep 20 21:59:34 2008 +0800
@@ -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--; \
Received on Sun Sep 21 2008 - 03:40:55 UTC
This archive was generated by hypermail 2.2.0 : Sun Sep 21 2008 - 03:48:04 UTC