- malloc may fail

This commit is contained in:
Pierre Joye 2011-01-19 15:23:07 +00:00
parent 434f3654da
commit c278fb01d0

View File

@ -159,6 +159,9 @@ cacheFetch( char **error, void *key )
key_value_t *map;
map = (key_value_t *)malloc(sizeof(key_value_t));
if (map == NULL) {
return NULL;
}
map->key = *(int *)key;
map->value = 3;