Kouhei Sutou
null+****@clear*****
Fri Apr 6 15:29:18 JST 2018
Kouhei Sutou 2018-04-06 15:29:18 +0900 (Fri, 06 Apr 2018) New Revision: bf9a084c9e790daef7cd2a662121d6a001173346 https://github.com/groonga/groonga/commit/bf9a084c9e790daef7cd2a662121d6a001173346 Message: Use "(anonymous)" for temporary table name Modified files: lib/db.c Modified: lib/db.c (+4 -0) =================================================================== --- lib/db.c 2018-04-06 15:28:35 +0900 (b6307cc62) +++ lib/db.c 2018-04-06 15:29:18 +0900 (59c7420a4) @@ -9020,6 +9020,10 @@ grn_obj_set_info_default_tokenizer(grn_ctx *ctx, } name_size = grn_obj_name(ctx, table, name, sizeof(name)); + if (name_size == 0) { + grn_strcpy(name, sizeof(name), "(anonymous)"); + name_size = strlen(name); + } if (grn_obj_is_text_family_bulk(ctx, default_tokenizer)) { if (grn_obj_set_info_is_funcall_call_bulk(ctx, default_tokenizer)) { grn_obj *unused; -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180406/b06e73cf/attachment.htm