Prevent a segv when setting a image path to NULL.

SVN revision: 30479
This commit is contained in:
ningerso 2007-06-28 03:32:58 +00:00 committed by ningerso
parent 2cdf35aad4
commit fb53f7e913
1 changed files with 1 additions and 0 deletions

View File

@ -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);