Initialize the error code before returning.

SVN revision: 30483
This commit is contained in:
ningerso 2007-06-28 14:36:50 +00:00 committed by ningerso
parent fb53f7e913
commit 47b408af54
1 changed files with 1 additions and 1 deletions

View File

@ -185,8 +185,8 @@ soft16_image_load(const char *file, const char *key, int *error,
Soft16_Image *im;
char buf[4096 + 1024];
if (!file) return NULL;
*error = 0;
if (!file) return NULL;
soft16_image_cache_key(lo, key, file, buf, sizeof(buf));
im = soft16_image_cache_get(buf);
if (im) return im;