Skip to content

Commit

Permalink
Accept all negative values
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 12, 2012
1 parent bf3bb10 commit 4750766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4750766

Please sign in to comment.