Use right variable [CID-181]

This commit is contained in:
Love Hornquist Astrand
2009-07-30 09:41:42 +02:00
parent e1ecb6f7a6
commit 3f802d359f

View File

@@ -150,7 +150,7 @@ main(int argc, char **argv)
buf[strcspn(buf, "\n\r")] = '\0';
arg = realloc(arg, (len + 2) * sizeof(arg[0]));
if (argv == NULL) {
if (arg == NULL) {
perror("malloc");
exit(1);
}