evas xpm loader - don't error print for files that cant be mmaped
no point complaining because we can't mmap... it'd be an unloadable file.
This commit is contained in:
parent
64c63f7a53
commit
97c3eedbab
|
@ -1723,11 +1723,7 @@ evas_image_load_file_xpm(Eina_File *f, Evas_Image_Property *prop, void *pixels,
|
||||||
if (length < 9) goto on_error;
|
if (length < 9) goto on_error;
|
||||||
|
|
||||||
map = eina_file_map_all(f, load_data ? EINA_FILE_WILLNEED : EINA_FILE_RANDOM);
|
map = eina_file_map_all(f, load_data ? EINA_FILE_WILLNEED : EINA_FILE_RANDOM);
|
||||||
if (!map)
|
if (!map) goto on_error;
|
||||||
{
|
|
||||||
ERR("XPM ERROR: file failed to mmap");
|
|
||||||
goto on_error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strncmp("/* XPM */", map, 9))
|
if (strncmp("/* XPM */", map, 9))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue