summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-02-22 13:16:22 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-02-22 13:16:22 +0000
commit3f2a55c37228d4bdd473ffd3af973769da34399c (patch)
tree5e7c638be9705b02b692b7f87222e78670cebec2 /lib
parente443ed152e9591ddbb93f9814c9bd0cdd0114702 (diff)
downloadmailutils-3f2a55c37228d4bdd473ffd3af973769da34399c.tar.gz
mailutils-3f2a55c37228d4bdd473ffd3af973769da34399c.tar.bz2
(argcv_get): Bugfix, *argc must be initialized to 1.
Diffstat (limited to 'lib')
-rw-r--r--lib/argcv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/argcv.c b/lib/argcv.c
index c4301089c..015f29d96 100644
--- a/lib/argcv.c
+++ b/lib/argcv.c
@@ -99,10 +99,10 @@ argcv_get (const char *command, const char *delim, const char* cmnt,
int i = 0;
int start, end, save;
- *argc = 0;
*argv = NULL;
/* Count number of arguments */
+ *argc = 1;
save = 0;
while (argcv_scan (len, command, delim, cmnt, &start, &end, &save) < len)

Return to:

Send suggestions and report system problems to the System administrator.