Fixed a possible segfault when file doesn't exists.
SVN revision: 40155
This commit is contained in:
parent
17e4571dff
commit
59ac58e4ca
|
@ -206,9 +206,11 @@ main(int argc, char *argv[])
|
|||
if (ef && arg_index < argc)
|
||||
thumb_key = argv[arg_index];
|
||||
|
||||
ethumb_file_thumb_path_set(ef, thumb_path, thumb_key);
|
||||
if (ef)
|
||||
ethumb_file_generate(ef);
|
||||
{
|
||||
ethumb_file_thumb_path_set(ef, thumb_path, thumb_key);
|
||||
ethumb_file_generate(ef);
|
||||
}
|
||||
|
||||
ethumb_file_free(ef);
|
||||
ethumb_free(e);
|
||||
|
|
Loading…
Reference in New Issue