FILE: improve error handling
This commit is contained in:
parent
cd347938f4
commit
1ed32d0193
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user