diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-19 18:56:43 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-19 18:56:43 +0000 |
commit | a0827f61f16f691962b378ab64ea27e5132dc506 (patch) | |
tree | 4ffa8a3c69d9a698a10c9a499339b8cf293d8b88 /protocols/Gadu-Gadu/src/import.cpp | |
parent | d0dca507c9fc51b566e73fac8c2827daaed441b1 (diff) |
GG:
- Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/import.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/import.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Gadu-Gadu/src/import.cpp b/protocols/Gadu-Gadu/src/import.cpp index 6922b85c2c..3c17b89cee 100644 --- a/protocols/Gadu-Gadu/src/import.cpp +++ b/protocols/Gadu-Gadu/src/import.cpp @@ -393,7 +393,8 @@ INT_PTR GGPROTO::import_text(WPARAM wParam, LPARAM lParam) mir_sntprintf(error, TranslateT("List cannot be imported from file \"%s\" because of error:\n\t%s (Error: %d)"), str, _tcserror(errno), errno);
MessageBox(NULL, error, m_tszUserName, MB_OK | MB_ICONSTOP);
debugLog(_T("import_text(): Cannot import list from file \"%s\". errno=%d: %s"), str, errno, strerror(errno));
- fclose(f);
+ if (f)
+ fclose(f);
return 0;
}
}
|