summaryrefslogtreecommitdiff
path: root/bk_whlp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bk_whlp.c')
-rw-r--r--bk_whlp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bk_whlp.c b/bk_whlp.c
index 9772021..14e6b01 100644
--- a/bk_whlp.c
+++ b/bk_whlp.c
@@ -212,6 +212,10 @@ void whlp_backend(paragraph *sourceform, keywordlist *keywords,
}
state.cntfp = fopen(cntname, "wb");
+ if (!state.cntfp) {
+ error(err_cantopenw, cntname);
+ return;
+ }
state.cnt_last_level = -1; state.cnt_workaround = 0;
/*