Additional error checking when saving the buffer contents
This commit is contained in:
parent
2f80388251
commit
f800a9dc2c
|
@ -375,7 +375,8 @@ static int _common_task_save_buffer_as(CommonTask * task, char const * filename)
|
|||
return -_common_task_error(task, strerror(errno), 1);
|
||||
}
|
||||
g_free(buf);
|
||||
fclose(fp);
|
||||
if(fclose(fp) != 0)
|
||||
return -_common_task_error(task, strerror(errno), 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user