diff --git a/src/expand-common.c b/src/expand-common.c index 0728e70d0..e1b549fab 100644 --- a/src/expand-common.c +++ b/src/expand-common.c @@ -16,6 +16,7 @@ #include +#include #include #include #include "system.h" @@ -282,6 +283,7 @@ next_file (FILE *fp) if (fp) { + assert (prev_file); if (ferror (fp)) { error (0, errno, "%s", quotef (prev_file));