forked from AuroraMiddleware/gtk
print-editor: Fix a wrong comparison
If error is NULL, replacing the file contents worked and we don't show the error dialog. The previous version pretty explicitly dereferenced a NULL pointer by first ensuring that error is NULL and then accessing error->message. Found by scan-build
This commit is contained in:
parent
a923be95b3
commit
3a1e019e83
@ -164,7 +164,7 @@ save_file (GFile *save_filename)
|
||||
NULL,
|
||||
&error);
|
||||
|
||||
if (error != NULL)
|
||||
if (error == NULL)
|
||||
{
|
||||
if (save_filename != filename)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user