FILE: improve error handling

This commit is contained in:
hasufell 2014-06-27 16:05:37 +02:00
parent cd347938f4
commit 1ed32d0193
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ write_file(string const *wstring, char const * const filename)
{
FILE *fp;
if (!wstring || !filename)
return false;
fp = fopen(filename, "w");
if (!fp) {