support empty includes

SVN revision: 20438
This commit is contained in:
tsauerbeck 2006-02-13 18:20:26 +00:00 committed by tsauerbeck
parent 36fcb1cf43
commit 9f701ace3f
1 changed files with 5 additions and 1 deletions

View File

@ -221,7 +221,11 @@ output(void)
printf("ERROR: unable to write file (%s).\n", out);
exit (-1);
}
fputs(sf->file, f);
/* if the file is empty, sf->file will be NULL.
* note that that's not an error
*/
if (sf->file) fputs(sf->file, f);
fclose(f);
}
if (fontlist)