diff options
author | Denis Vlasenko | 2007-04-09 21:35:07 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-09 21:35:07 +0000 |
commit | 3f3aa2a57dc648ade9083f3b3ad83cce8206b912 (patch) | |
tree | d5c648f583bb2edef25f05c2bed303df3d1a61f6 /libbb/getopt32.c | |
parent | cd7001f7055c3fc2d6298ab9e3befe91e951c652 (diff) | |
download | busybox-3f3aa2a57dc648ade9083f3b3ad83cce8206b912.zip busybox-3f3aa2a57dc648ade9083f3b3ad83cce8206b912.tar.gz |
make xfunctions optionally longjump instead of exit.
use it for making NOFORK more practical.
touch: make it a NOFORK applet
Diffstat (limited to 'libbb/getopt32.c')
-rw-r--r-- | libbb/getopt32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c index dec97d7..28b4797 100644 --- a/libbb/getopt32.c +++ b/libbb/getopt32.c @@ -457,6 +457,7 @@ getopt32(int argc, char **argv, const char *applet_opts, ...) /* In case getopt32 was already called, reinit some state */ optind = 1; + /* optarg = NULL; opterr = 0; optopt = 0; ?? */ /* Note: just "getopt() <= 0" will not work good for * "fake" short options, like this one: |