summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-04 02:21:29 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-04 02:21:29 (GMT)
commitbc2e6ca7c656616f7241fc54a3bb915b2f831c0d (patch)
tree5d4377798430936cae3197b049023d6f94f265ab /gfx
parenta44aee8a517fc2849ba0851e1249e5024f9e5f80 (diff)
downloadeeshow-bc2e6ca7c656616f7241fc54a3bb915b2f831c0d.zip
eeshow-bc2e6ca7c656616f7241fc54a3bb915b2f831c0d.tar.gz
eeshow-bc2e6ca7c656616f7241fc54a3bb915b2f831c0d.tar.bz2
gfx/diff.c (diff_args): check for error return from diff_process_file
Diffstat (limited to 'gfx')
-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);
}