mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Guard usage of f_log in compile_dictlist_file.
This commit is contained in:
+5
-2
@@ -1,6 +1,7 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2005 to 2014 by Jonathan Duddington *
|
||||
* email: jonsd@users.sourceforge.net *
|
||||
* 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 */
|
||||
|
||||
Reference in New Issue
Block a user