diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-17 21:12:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-17 21:12:09 +0000 |
commit | bed39036b47e1b820ee40d645f743e18520c4f8c (patch) | |
tree | 6218facf7c12448327e82780896a609ac000e128 /src/util/getopt.c | |
parent | a6d3a7a355634ef0396f009f9286962cdc4c6077 (diff) | |
download | gnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.tar.gz gnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.zip |
fixes
Diffstat (limited to 'src/util/getopt.c')
-rw-r--r-- | src/util/getopt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/getopt.c b/src/util/getopt.c index 82d0baebd..63caa0346 100644 --- a/src/util/getopt.c +++ b/src/util/getopt.c | |||
@@ -847,6 +847,7 @@ GN_getopt_internal (argc, argv, optstring, longopts, longind, long_only) | |||
847 | 847 | ||
848 | /* Test all long options for either exact match | 848 | /* Test all long options for either exact match |
849 | or abbreviated matches. */ | 849 | or abbreviated matches. */ |
850 | if (longopts != NULL) | ||
850 | for (p = longopts, option_index = 0; p->name; p++, option_index++) | 851 | for (p = longopts, option_index = 0; p->name; p++, option_index++) |
851 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | 852 | if (!strncmp (p->name, nextchar, nameend - nextchar)) |
852 | { | 853 | { |