forked from enlightenment/efl
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:
parent
02a07caca4
commit
64dc6ab056
|
@ -436,7 +436,7 @@ evas_image_load_file_head_bmp(void *loader_data,
|
||||||
}
|
}
|
||||||
else if (header.comp == 4) // jpeg - only printer drivers
|
else if (header.comp == 4) // jpeg - only printer drivers
|
||||||
goto close_file;
|
goto close_file;
|
||||||
else if (header.comp == 3) // png - only printer drivers
|
else if (header.comp == 5) // png - only printer drivers
|
||||||
goto close_file;
|
goto close_file;
|
||||||
else
|
else
|
||||||
goto close_file;
|
goto close_file;
|
||||||
|
@ -1405,7 +1405,7 @@ evas_image_load_file_data_bmp(void *loader_data,
|
||||||
{
|
{
|
||||||
goto close_file;
|
goto close_file;
|
||||||
}
|
}
|
||||||
else if (header.comp == 3) // png - only printer drivers
|
else if (header.comp == 5) // png - only printer drivers
|
||||||
{
|
{
|
||||||
goto close_file;
|
goto close_file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue