diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c index 683b12001eb7..6e3e5539d0c0 100644 --- a/usr.bin/paste/paste.c +++ b/usr.bin/paste/paste.c @@ -140,7 +140,7 @@ parallel(char **argv) LIST *head, *tmp; int opencnt, output; - for (cnt = 0, head = NULL; (p = *argv); ++argv, ++cnt) { + for (cnt = 0, head = tmp = NULL; (p = *argv); ++argv, ++cnt) { if ((lp = malloc(sizeof(LIST))) == NULL) err(1, NULL); if (p[0] == '-' && !p[1])