X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fcore%2Fstore.c;h=7671e9800f13a0ac0a81e2b24817d95b0f0a83ef;hp=2d32e0d2cdbbb7419c54094d607c3eb771d99a8f;hb=742c60b383c9373b2156c3af5ff9e7605c056e60;hpb=182112ccd9852672b39ff958ab0c605c9ef856ad diff --git a/src/core/store.c b/src/core/store.c index 2d32e0d..7671e98 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -871,8 +871,11 @@ sdb_store_init(void) sdb_log(SDB_LOG_ERR, "store: Failed to allocate store"); return -1; } - return sdb_plugin_register_writer("memstore", - &store_writer, SDB_OBJ(global_store)); + if (sdb_plugin_register_writer("memstore", + &store_writer, SDB_OBJ(global_store))) + return -1; + return sdb_plugin_register_reader("memstore", + &store_reader, SDB_OBJ(global_store)); } /* sdb_store_init */ void