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
This commit is contained in:
Christopher Michael 2021-09-21 10:27:47 -04:00
parent cbcf5bc64a
commit 2c7b1a992c
1 changed files with 1 additions and 1 deletions

View File

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