[Groonga-commit] groonga/groonga [master] [command][get] fix wrong index access.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 5月 30日 (月) 21:20:25 JST


Kouhei Sutou	2011-05-30 12:20:25 +0000 (Mon, 30 May 2011)

  New Revision: 7e3400e879f55b9f2d209673b2eb4c11f92756cb

  Log:
    [command][get] fix wrong index access.
    
    Reported by OBATA Akio. Thanks!!!

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -2)
===================================================================
--- lib/proc.c    2011-05-30 09:56:17 +0000 (376d752)
+++ lib/proc.c    2011-05-30 12:20:25 +0000 (c40af6f)
@@ -1246,8 +1246,8 @@ proc_get_resolve_parameters(grn_ctx *ctx, grn_user_data *user_data, grn_obj **ta
 
   key_text = GRN_TEXT_VALUE(VAR(1));
   key_length = GRN_TEXT_LEN(VAR(1));
-  id_text = GRN_TEXT_VALUE(VAR(4));
-  id_length = GRN_TEXT_LEN(VAR(4));
+  id_text = GRN_TEXT_VALUE(VAR(3));
+  id_length = GRN_TEXT_LEN(VAR(3));
   switch ((*table)->header.type) {
   case GRN_TABLE_NO_KEY:
     if (key_length) {




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