summaryrefslogtreecommitdiffabout
path: root/lib/argcv.c
Side-by-side diff
Diffstat (limited to 'lib/argcv.c') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/argcv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/argcv.c b/lib/argcv.c
index 7e608f3..58dec9e 100644
--- a/lib/argcv.c
+++ b/lib/argcv.c
@@ -390,7 +390,7 @@ argcv_string (int argc, char **argv, char **pstring)
return 1;
*buffer = '\0';
- for (len = i = j = 0; (argc > 0) ? i < argc : argv[i]; i++)
+ for (len = i = j = 0; (argc > 0) ? i < argc : (argv[i] != NULL); i++)
{
int quote = 0;
int toklen;

Return to:

Send suggestions and report system problems to the System administrator.