Kouhei Sutou
null+****@clear*****
Tue Oct 8 23:23:45 JST 2013
Kouhei Sutou 2013-10-08 23:23:45 +0900 (Tue, 08 Oct 2013) New Revision: 4b048cd6d34756030b95d65251cb7d680c4acf23 https://github.com/groonga/groonga/commit/4b048cd6d34756030b95d65251cb7d680c4acf23 Message: mruby: reduce assingment in if condition Modified files: lib/mrb.c Modified: lib/mrb.c (+3 -1) =================================================================== --- lib/mrb.c 2013-10-08 23:22:22 +0900 (f2cdad2) +++ lib/mrb.c 2013-10-08 23:23:45 +0900 (63bc029) @@ -109,7 +109,9 @@ grn_mrb_load(grn_ctx *ctx, const char *path) if (!mrb) { return mrb_nil_value(); } - if (!(fp = grn_mrb_open_script(ctx, path))) { + + fp = grn_mrb_open_script(ctx, path); + if (!fp) { mrb_value exception; char message[BUFFER_SIZE]; snprintf(message, BUFFER_SIZE - 1, "can't find script: <%s>", path); -------------- next part -------------- HTML����������������������������... 下载