summaryrefslogtreecommitdiff
path: root/gfx/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/diff.c')
-rw-r--r--gfx/diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/diff.c b/gfx/diff.c
index 60c6c99..b075e43 100644
--- a/gfx/diff.c
+++ b/gfx/diff.c
@@ -251,6 +251,8 @@ static bool diff_args(void *ctx, int argc, char *const *argv, const char *opts)
diff->new_gfx = diff_process_file(diff, &file_names, argc, argv, opts);
free_file_names(&file_names);
+ if (!diff->new_gfx)
+ return 0;
return gfx_args(diff->gfx, argc, argv, opts);
}