diff --git a/lib/com_err/compile_et.c b/lib/com_err/compile_et.c index f6a9afb12..0390ee9b1 100644 --- a/lib/com_err/compile_et.c +++ b/lib/com_err/compile_et.c @@ -64,13 +64,14 @@ char *filename; char hfn[128]; char cfn[128]; -struct error_code *codes; +struct error_code *codes = NULL; int generate_c(void) { int n; struct error_code *ec; + FILE *c_file = fopen(cfn, "w"); if(c_file == NULL) return 1;