Kouhei Sutou
null+****@clear*****
Wed Dec 12 18:04:32 JST 2012
Kouhei Sutou 2012-12-12 18:04:32 +0900 (Wed, 12 Dec 2012) New Revision: d7a8293e5331671e2c1a6f8bc6e21bafef460f4d https://github.com/groonga/groonga/commit/d7a8293e5331671e2c1a6f8bc6e21bafef460f4d Log: Remove needless NULL check NULL and negative value should not be used. Modified files: lib/db.c Modified: lib/db.c (+1 -1) =================================================================== --- lib/db.c 2012-12-12 18:03:54 +0900 (9711fbe) +++ lib/db.c 2012-12-12 18:04:32 +0900 (c1d6887) @@ -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 < 0) { + if (name_size < 0) { name_size = strlen(name); } if (grn_db_check_name(ctx, name, name_size)) { -------------- next part -------------- HTML����������������������������... Download