[Groonga-commit] groonga/groonga at 888df74 [master] Share common code

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 21 22:15:49 JST 2014


Kouhei Sutou	2014-10-21 22:15:49 +0900 (Tue, 21 Oct 2014)

  New Revision: 888df74e4719b287687cfc54ed13a9c3efa1b3bb
  https://github.com/groonga/groonga/commit/888df74e4719b287687cfc54ed13a9c3efa1b3bb

  Message:
    Share common code

  Modified files:
    lib/store.c

  Modified: lib/store.c (+2 -2)
===================================================================
--- lib/store.c    2014-10-21 22:02:23 +0900 (4e521b1)
+++ lib/store.c    2014-10-21 22:15:49 +0900 (041f203)
@@ -1241,12 +1241,12 @@ grn_ja_ref_lz4(grn_ctx *ctx, grn_ja *ja, grn_id id, grn_io_win *iw, uint32_t *va
     *value_len = 0;
     return NULL;
   }
-  if (!(iw->value = GRN_MALLOC(*((uint64_t *)lvalue)))) {
+  lout_len = *((uint64_t *)lvalue);
+  if (!(iw->value = GRN_MALLOC(lout_len))) {
     iw->value = NULL;
     *value_len = 0;
     return NULL;
   }
-  lout_len = *((uint64_t *)lvalue);
   if (LZ4_decompress_safe((const char *)((uint64_t *)lvalue + 1),
                           (char *)(iw->value),
                           lvalue_len - sizeof(uint64_t),
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index