[Groonga-commit] groonga/groonga [master] fix JSONP support doesn't work.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 2月 17日 (木) 12:35:07 JST


Kouhei Sutou	2011-02-17 03:35:07 +0000 (Thu, 17 Feb 2011)

  New Revision: 86fe8b2539bc3af3368fec5fe356ccbd5347d409

  Log:
    fix JSONP support doesn't work.

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c    2011-02-16 08:11:57 +0000 (b59e214)
+++ src/groonga.c    2011-02-17 03:35:07 +0000 (87b0d6a)
@@ -767,8 +767,8 @@ h_output(grn_ctx *ctx, int flags, void *arg)
     grn_obj *expr = ctx->impl->curr_expr;
     grn_obj *jsonp_func = NULL;
     if (expr) {
-      expr = grn_expr_get_var(ctx, expr, JSON_CALLBACK_PARAM,
-                              strlen(JSON_CALLBACK_PARAM));
+      jsonp_func = grn_expr_get_var(ctx, expr, JSON_CALLBACK_PARAM,
+                                    strlen(JSON_CALLBACK_PARAM));
     }
     if (jsonp_func && GRN_TEXT_LEN(jsonp_func)) {
       GRN_TEXT_PUT(ctx, &head, GRN_TEXT_VALUE(jsonp_func), GRN_TEXT_LEN(jsonp_func));




Groonga-commit メーリングリストの案内
Back to archive index