summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nasm.c b/nasm.c
index 7a63afb8..c0a105b0 100644
--- a/nasm.c
+++ b/nasm.c
@@ -2069,7 +2069,10 @@ static char *no_pp_getline(void)
static void no_pp_cleanup(int pass)
{
(void)pass; /* placate GCC */
- fclose(no_pp_fp);
+ if (no_pp_fp) {
+ fclose(no_pp_fp);
+ no_pp_fp = NULL;
+ }
}
static uint32_t get_cpu(char *value)