forked from enlightenment/efl
Prevent a segv when setting a image path to NULL.
SVN revision: 30479
This commit is contained in:
parent
2cdf35aad4
commit
fb53f7e913
|
@ -185,6 +185,7 @@ soft16_image_load(const char *file, const char *key, int *error,
|
|||
Soft16_Image *im;
|
||||
char buf[4096 + 1024];
|
||||
|
||||
if (!file) return NULL;
|
||||
*error = 0;
|
||||
soft16_image_cache_key(lo, key, file, buf, sizeof(buf));
|
||||
im = soft16_image_cache_get(buf);
|
||||
|
|
Loading…
Reference in New Issue