Merge pull request #453 from fyrz/SimpleCExampleSigSegv

Memory issue fix in c_simple_example
This commit is contained in:
Igor Canadi 2015-01-09 09:34:08 -08:00
commit 93b35c299b

View File

@ -30,7 +30,7 @@ int main(int argc, char **argv) {
const char key[] = "key";
const char *value = "value";
rocksdb_put(db, writeoptions, key, strlen (key), value, \
strlen (value), &err);
strlen (value) + 1, &err);
assert(!err);
// Get value
rocksdb_readoptions_t *readoptions = rocksdb_readoptions_create();