evas-pdf: Properly set return value before cleanup is called

Coverity CID1437717 tells us that this code is unreachable
(obviously), so let's set the return value Before we go to cleanup.

Fixes CID1437717

@fix
v-1.26.0
Christopher Michael 1 year ago
parent cbcf5bc64a
commit 2c7b1a992c
  1. 2
      src/generic/evas/pdf/main.cpp

@ -348,8 +348,8 @@ main(int argc, char **argv)
D("poppler_file_init\n");
if (!poppler_init(file, page_num, size_w, size_h))
{
goto cleanup;
ret = 1;
goto cleanup;
}
D("poppler_file_init done\n");

Loading…
Cancel
Save