Kouhei Sutou
null+****@clear*****
Wed Dec 12 18:03:54 JST 2012
Kouhei Sutou 2012-12-12 18:03:54 +0900 (Wed, 12 Dec 2012) New Revision: 4750766ac9ea2270a72ceeb2adb2b1b6fcf511d4 https://github.com/groonga/groonga/commit/4750766ac9ea2270a72ceeb2adb2b1b6fcf511d4 Log: Accept all negative values Modified files: lib/db.c Modified: lib/db.c (+1 -1) =================================================================== --- lib/db.c 2012-12-12 18:03:28 +0900 (c805e35) +++ lib/db.c 2012-12-12 18:03:54 +0900 (9711fbe) @@ -551,7 +551,7 @@ grn_proc_create(grn_ctx *ctx, const char *name, int name_size, grn_proc_type typ } GRN_API_ENTER; range = path ? grn_plugin_get(ctx, path) : GRN_ID_NIL; - if (name && name_size == -1) { + if (name && name_size < 0) { name_size = strlen(name); } if (grn_db_check_name(ctx, name, name_size)) { -------------- next part -------------- HTML����������������������������...Download