Kouhei Sutou
null+****@clear*****
Tue Feb 3 15:34:51 JST 2015
Kouhei Sutou 2015-02-03 15:34:51 +0900 (Tue, 03 Feb 2015) New Revision: 309e7d22a2da69ebf0c0a5a19cbd64bb91c97a99 https://github.com/groonga/groonga/commit/309e7d22a2da69ebf0c0a5a19cbd64bb91c97a99 Message: mrb: fix inverted condition Modified files: lib/mrb/mrb_expr.c Modified: lib/mrb/mrb_expr.c (+3 -3) =================================================================== --- lib/mrb/mrb_expr.c 2015-02-03 15:20:11 +0900 (011d6c9) +++ lib/mrb/mrb_expr.c 2015-02-03 15:34:51 +0900 (59d7fad) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* - Copyright(C) 2013-2014 Brazil + Copyright(C) 2013-2015 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -332,10 +332,10 @@ mrb_grn_expression_singleton_create(mrb_state *mrb, mrb_value klass) mrb_get_args(mrb, "o", &mrb_table); if (mrb_nil_p(mrb_table)) { + expr = grn_expr_create(ctx, NULL, 0); + } else { grn_obj *table = DATA_PTR(mrb_table); GRN_EXPR_CREATE_FOR_QUERY(ctx, table, expr, variable); - } else { - expr = grn_expr_create(ctx, NULL, 0); } if (!expr) { -------------- next part -------------- HTML����������������������������... Download