You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2015/07/17 01:12:32 UTC

couchdb-khash git commit: fix previous merge

Repository: couchdb-khash
Updated Branches:
  refs/heads/master 265475d17 -> 07c770e74


fix previous merge


Project: http://git-wip-us.apache.org/repos/asf/couchdb-khash/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-khash/commit/07c770e7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-khash/tree/07c770e7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-khash/diff/07c770e7

Branch: refs/heads/master
Commit: 07c770e740b6622583c36895f26c734b8e5ee780
Parents: 265475d
Author: Robert Newson <rn...@apache.org>
Authored: Fri Jul 17 00:09:04 2015 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Jul 17 00:09:04 2015 +0100

----------------------------------------------------------------------
 c_src/khash.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-khash/blob/07c770e7/c_src/khash.c
----------------------------------------------------------------------
diff --git a/c_src/khash.c b/c_src/khash.c
index 8081c3b..6fbf463 100644
--- a/c_src/khash.c
+++ b/c_src/khash.c
@@ -294,6 +294,7 @@ khash_lookup(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
 {
     khash_priv* priv = enif_priv_data(env);
     khash_t* khash = NULL;
+    void* res = NULL;
     uint32_t hval;
     hnode_t* entry;
     khnode_t* node;
@@ -335,6 +336,7 @@ khash_get(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
 {
     khash_priv* priv = enif_priv_data(env);
     khash_t* khash = NULL;
+    void* res = NULL;
     uint32_t hval;
     hnode_t* entry;
     khnode_t* node;
@@ -375,6 +377,7 @@ khash_put(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
 {
     khash_priv* priv = enif_priv_data(env);
     khash_t* khash = NULL;
+    void* res = NULL;
     uint32_t hval;
     hnode_t* entry;
     khnode_t* node;