null+****@clear*****
null+****@clear*****
2010年 6月 24日 (木) 20:17:23 JST
Daijiro MORI 2010-06-24 11:17:23 +0000 (Thu, 24 Jun 2010) New Revision: 27615ed30d505ea2d8d3dd975575e2331dc1ccb9 Log: return "" when GRN_ID_NIL is assigned as id for grn_obj_get_value(). Modified files: lib/db.c Modified: lib/db.c (+1 -0) =================================================================== --- lib/db.c 2010-06-24 11:13:54 +0000 (5a3b53a) +++ lib/db.c 2010-06-24 11:17:23 +0000 (c4cd505) @@ -4422,6 +4422,7 @@ grn_obj_get_value(grn_ctx *ctx, grn_obj *obj, grn_id id, grn_obj *value) { unsigned int len = 0; GRN_API_ENTER; + if (!id) { goto exit; } if (!obj) { ERR(GRN_INVALID_ARGUMENT, "grn_obj_get_value failed"); goto exit;