Browse Source

fix crash if storage files could not be opened. TODO give a fitting error message

0.1.7 v0.1.7
Georg Hopp 12 years ago
parent
commit
530d34eeb2
  1. 5
      src/storage/get.c

5
src/storage/get.c

@ -40,6 +40,11 @@ storageGet(
datum gdbm_key = {key, nkey}; datum gdbm_key = {key, nkey};
datum value; datum value;
if (NULL == this) {
*data = NULL;
*ndata = 0;
}
memcpy(key, _key, nkey); memcpy(key, _key, nkey);
value = gdbm_fetch(this->gdbm, gdbm_key); value = gdbm_fetch(this->gdbm, gdbm_key);
MEM_FREE(key); MEM_FREE(key);

Loading…
Cancel
Save