diff scid/theme.c @ 77:070d8c92ca30

scid: fix index page
author David Demelier <markand@malikania.fr>
date Mon, 30 Jan 2023 10:38:33 +0100
parents 16f1c72d1635
children 71cd8447e3a4
line wrap: on
line diff
--- a/scid/theme.c	Mon Jan 30 09:35:05 2023 +0100
+++ b/scid/theme.c	Mon Jan 30 10:38:33 2023 +0100
@@ -51,7 +51,7 @@
 {
 	FILE *fp = data;
 
-	if (fwrite(output, 1, size, fp) != size)
+	if (output && fwrite(output, 1, size, fp) != size)
 		return -1;
 
 	return 0;