diff options
-rw-r--r-- | rpmio/argv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/argv.c b/rpmio/argv.c index c96a7bf42..7a1aa5d5a 100644 --- a/rpmio/argv.c +++ b/rpmio/argv.c @@ -204,7 +204,7 @@ char *argvJoin(ARGV_const_t argv, const char *sep) char *dest = NULL; char * const *arg; - for (arg = argv; *arg; arg++) { + for (arg = argv; arg && *arg; arg++) { rstrscat(&dest, *arg, *(arg+1) ? sep : "", NULL); } return dest; |