aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ethumb/src/bin/ethumb.c
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2009-05-26 20:33:58 +0000
committerRafael Antognolli <antognolli@gmail.com>2009-05-26 20:33:58 +0000
commit4229b4654b09966161d37b2664be3c34d4c36b0f (patch)
treec93b432cfc3b4d7c4d3421fd4266fc75d25028a3 /legacy/ethumb/src/bin/ethumb.c
parentFix output file ethumb.pc when some optional modules are disabled. (diff)
downloadefl-4229b4654b09966161d37b2664be3c34d4c36b0f.tar.gz
Fixed segfault when no file is passed as argument to ethumb.
Other minor fixes: - fixed use fo eina safety checks; - _ethumb_build_absolute_path is used inside dir_set. SVN revision: 40840
Diffstat (limited to 'legacy/ethumb/src/bin/ethumb.c')
-rw-r--r--legacy/ethumb/src/bin/ethumb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/ethumb/src/bin/ethumb.c b/legacy/ethumb/src/bin/ethumb.c
index 1de68626de..4c344c3fbb 100644
--- a/legacy/ethumb/src/bin/ethumb.c
+++ b/legacy/ethumb/src/bin/ethumb.c
@@ -218,6 +218,8 @@ main(int argc, char *argv[])
if (r && arg_index < argc)
r = ethumb_file_set(e, argv[arg_index++], src_key);
+ else
+ r = 0;
if (r && arg_index < argc)
thumb_path = argv[arg_index++];
if (r && arg_index < argc)