Browse Source

Guard usage of f_log in compile_dictlist_file.

master
Reece H. Dunn 9 years ago
parent
commit
8d2f0edce2
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/compiledict.cpp

+ 5
- 2
src/compiledict.cpp View File

@@ -1,6 +1,7 @@
/***************************************************************************
* Copyright (C) 2005 to 2014 by Jonathan Duddington *
* email: [email protected] *
* Copyright (C) 2015 by Reece H. Dunn *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -870,7 +871,8 @@ static int compile_dictlist_file(const char *path, const char* filename)
return(-1);
}

fprintf(f_log,"Compiling: '%s'\n",fname);
if(f_log != NULL)
fprintf(f_log,"Compiling: '%s'\n",fname);

linenum=0;

@@ -900,7 +902,8 @@ static int compile_dictlist_file(const char *path, const char* filename)
count++;
}

fprintf(f_log,"\t%d entries\n",count);
if(f_log != NULL)
fprintf(f_log,"\t%d entries\n",count);
fclose(f_in);
return(0);
} /* end of compile_dictlist_file */

Loading…
Cancel
Save