summaryrefslogtreecommitdiffabout
path: root/lib
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-06 14:27:47 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-08-06 14:27:47 (GMT)
commit21897a7e418d0083e8e22699426236a4e91be408 (patch) (side-by-side diff)
tree12918ff60c7ae9acd4a7c35260edd14fb656abca /lib
parent52dba7388b7cabf2eaa0cd8fcc9a7d0fd40ffd97 (diff)
downloadanubis-21897a7e418d0083e8e22699426236a4e91be408.tar.gz
anubis-21897a7e418d0083e8e22699426236a4e91be408.tar.bz2
(argcv_string): Fix type mismatch in conditional
Diffstat (limited to 'lib') (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.