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

/*************************************************************************** /***************************************************************************
* Copyright (C) 2005 to 2014 by Jonathan Duddington * * Copyright (C) 2005 to 2014 by Jonathan Duddington *
* email: [email protected] * * email: [email protected] *
* 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 *
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;


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 */

Loading…
Cancel
Save