src/frontend.c

changeset 82
ce67b1b2e979
parent 78
719e3c6d4c9b
--- a/src/frontend.c	Thu Jul 11 20:05:26 2024 +0200
+++ b/src/frontend.c	Thu Jul 11 20:13:59 2024 +0200
@@ -44,6 +44,7 @@
 } Settings;
 
 static int appendfile(const char *filename, FILE *fout, const char *errmsg) {
+    if (filename == NULL) return 0; // nothing to append
     FILE *fin = fopen(filename, "r");
     if (!fin) {
         perror(errmsg);

mercurial