parser-helper: Ensure file_next() does not remove the sentinel item

This commit is contained in:
Tobias Brunner 2014-06-30 15:23:22 +02:00
parent 6fb1283242
commit 1be2b84124
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ METHOD(parser_helper_t, file_next, FILE*,
char *name;
array_get(this->files, ARRAY_TAIL, &file);
if (!file->matches)
if (!file->matches && file->name)
{
array_remove(this->files, ARRAY_TAIL, NULL);
parser_helper_file_destroy(file);