summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ar/replace.c')
-rw-r--r--usr.bin/ar/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ar/replace.c b/usr.bin/ar/replace.c
index a226235..b9a6cc6 100644
--- a/usr.bin/ar/replace.c
+++ b/usr.bin/ar/replace.c
@@ -141,7 +141,7 @@ useold: SETCF(afd, archive, curfd, tname, RPAD|WPAD);
}
/* Append any left-over arguments to the end of the after file. */
-append: while (file = *argv++) {
+append: while ( (file = *argv++) ) {
if (options & AR_V)
(void)printf("a - %s\n", file);
if ((sfd = open(file, O_RDONLY)) < 0) {
OpenPOWER on IntegriCloud