Kouhei Sutou
null+****@clear*****
Thu Jan 14 18:45:30 JST 2016
Kouhei Sutou 2016-01-14 18:45:30 +0900 (Thu, 14 Jan 2016) New Revision: ead1ac53e93c2f5d5b07d631a905986a3e4653fa https://github.com/groonga/groonga/commit/ead1ac53e93c2f5d5b07d631a905986a3e4653fa Message: hash: fix wrong return type Modified files: lib/hash.c Modified: lib/hash.c (+1 -1) =================================================================== --- lib/hash.c 2016-01-14 18:16:43 +0900 (4999e40) +++ lib/hash.c 2016-01-14 18:45:30 +0900 (77c3e92) @@ -2782,7 +2782,7 @@ grn_hash_cursor_open(grn_ctx *ctx, grn_hash *hash, grn_hash_cursor *c; if (!hash || !ctx) { return NULL; } if (grn_hash_error_if_truncated(ctx, hash) != GRN_SUCCESS) { - return GRN_ID_NIL; + return NULL; } if (!(c = GRN_MALLOCN(grn_hash_cursor, 1))) { return NULL; } GRN_DB_OBJ_SET_TYPE(c, GRN_CURSOR_TABLE_HASH_KEY); -------------- next part -------------- HTML����������������������������... Download