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.
master
Daniel Zaoui 4 years ago
parent f1bfcaeaf0
commit ee532a6aac
  1. 2
      src/bin/inspect.c

@ -1201,7 +1201,7 @@ main(int argc, char *argv[])
if (output) gui_needed = EINA_FALSE;
for (arg = args; arg < argc; arg++)
{
if (!ext) ext = strrchr(argv[arg], '.');
ext = strrchr(argv[arg], '.');
if (!ext)
{
fprintf(stderr, "Extension required\n");

Loading…
Cancel
Save