From: Armaan Bhojwani
Date: Sun, 18 Apr 2021 17:31:34 +0000 (-0400)
Subject: Fix segfault by moving fclose
X-Git-Url: https://git.armaanb.net/lightcards/refs/?a=commitdiff_plain;h=0bb810d3a94a225fbc7cf099bd92608de0baa45b;p=stagit.git
Fix segfault by moving fclose
---
diff --git a/src/stagit-index.c b/src/stagit-index.c
index bad91d1..2a23e8f 100644
--- a/src/stagit-index.c
+++ b/src/stagit-index.c
@@ -104,8 +104,8 @@ writeheader(char *path)
c = fgetc(longdesc);
}
#endif
+ fclose(longdesc);
}
- fclose(longdesc);
fputs("
\n
\n