Browse Source

Close f on error in LoadDictionary.

master
Reece H. Dunn 9 years ago
parent
commit
fd687c3162
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/dictionary.cpp

+ 3
- 1
src/dictionary.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) 2013 Reece H. Dunn *
* Copyright (C) 2013-2015 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 *
{ {
fprintf(stderr,"Can't read dictionary file: '%s'\n",fname); fprintf(stderr,"Can't read dictionary file: '%s'\n",fname);
} }
if (f != NULL)
fclose(f);
return(1); return(1);
} }



Loading…
Cancel
Save