Inspect: fix extension extraction when different extensions are given
When a exu and a rec file were given, the ext was remaining exu and a crash was happening.
This commit is contained in:
parent
f1bfcaeaf0
commit
ee532a6aac
|
@ -1201,7 +1201,7 @@ main(int argc, char *argv[])
|
||||||
if (output) gui_needed = EINA_FALSE;
|
if (output) gui_needed = EINA_FALSE;
|
||||||
for (arg = args; arg < argc; arg++)
|
for (arg = args; arg < argc; arg++)
|
||||||
{
|
{
|
||||||
if (!ext) ext = strrchr(argv[arg], '.');
|
ext = strrchr(argv[arg], '.');
|
||||||
if (!ext)
|
if (!ext)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Extension required\n");
|
fprintf(stderr, "Extension required\n");
|
||||||
|
|
Loading…
Reference in New Issue