Guard usage of f_log in compile_dictlist_file.

This commit is contained in:
Reece H. Dunn
2015-10-04 14:44:09 +01:00
parent 7afe4cf0bf
commit 8d2f0edce2
+5 -2
View File
@@ -1,6 +1,7 @@
/*************************************************************************** /***************************************************************************
* Copyright (C) 2005 to 2014 by Jonathan Duddington * * Copyright (C) 2005 to 2014 by Jonathan Duddington *
* email: jonsd@users.sourceforge.net * * email: jonsd@users.sourceforge.net *
* Copyright (C) 2015 by Reece H. Dunn *
* * * *
* This program is free software; you can redistribute it and/or modify * * 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 * * 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); return(-1);
} }
fprintf(f_log,"Compiling: '%s'\n",fname); if(f_log != NULL)
fprintf(f_log,"Compiling: '%s'\n",fname);
linenum=0; linenum=0;
@@ -900,7 +902,8 @@ static int compile_dictlist_file(const char *path, const char* filename)
count++; count++;
} }
fprintf(f_log,"\t%d entries\n",count); if(f_log != NULL)
fprintf(f_log,"\t%d entries\n",count);
fclose(f_in); fclose(f_in);
return(0); return(0);
} /* end of compile_dictlist_file */ } /* end of compile_dictlist_file */