evas bmp loader - fix warnings about same type handled twice

so a type we handle earlir inan if we re-handle as invalid later. this
wouldnt lead to a crash or bugs as the if's would ned to be evaluated
in order normally, but it's good to get it right.

found by PVS studio
This commit is contained in:
Carsten Haitzler 2017-07-28 20:39:44 +09:00
parent 02a07caca4
commit 64dc6ab056
1 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@ evas_image_load_file_head_bmp(void *loader_data,
}
else if (header.comp == 4) // jpeg - only printer drivers
goto close_file;
else if (header.comp == 3) // png - only printer drivers
else if (header.comp == 5) // png - only printer drivers
goto close_file;
else
goto close_file;
@ -1405,7 +1405,7 @@ evas_image_load_file_data_bmp(void *loader_data,
{
goto close_file;
}
else if (header.comp == 3) // png - only printer drivers
else if (header.comp == 5) // png - only printer drivers
{
goto close_file;
}