diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 11:34:17 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 11:34:17 +0000 |
commit | 7fe61c05eb5cb0c94a346d90c54679d45ffba699 (patch) | |
tree | 74f144e67c212519671aa06ba05058569788b192 /i18npool/source/textconversion | |
parent | 799b8e97947745c8174dfc198638dfa176a991ed (diff) |
INTEGRATION: CWS cmcfixes35 (1.10.68); FILE MERGED
2007/07/03 10:42:40 cmc 1.10.68.1: #i79143# double double free failed fopened files
Diffstat (limited to 'i18npool/source/textconversion')
-rw-r--r-- | i18npool/source/textconversion/genconv_dict.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx index c0ab44baad1b..4c9192f45fc6 100644 --- a/i18npool/source/textconversion/genconv_dict.cxx +++ b/i18npool/source/textconversion/genconv_dict.cxx @@ -4,9 +4,9 @@ * * $RCSfile: genconv_dict.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2006-09-17 09:23:37 $ + * last change: $Author: hr $ $Date: 2007-08-03 12:34:17 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -61,13 +61,17 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) sfp = fopen(argv[2], "rb"); // open the source file for read; if (sfp == NULL) + { printf("Open the dictionary source file failed."); + return -1; + } // create the C source file to write cfp = fopen(argv[3], "wb"); if (cfp == NULL) { fclose(sfp); printf("Can't create the C source file."); + return -1; } fprintf(cfp, "/*\n"); |