[Groonga-commit] groonga/groonga at a52dc36 [master] loader: do error checks before processing

Back to archive index

Susumu Yata null+****@clear*****
Fri Mar 4 18:10:37 JST 2016


Susumu Yata	2016-03-04 18:10:37 +0900 (Fri, 04 Mar 2016)

  New Revision: a52dc36f6eb75378d3134bc38475da0cb21c7336
  https://github.com/groonga/groonga/commit/a52dc36f6eb75378d3134bc38475da0cb21c7336

  Message:
    loader: do error checks before processing

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2016-03-04 17:23:45 +0900 (744ab2c)
+++ lib/db.c    2016-03-04 18:10:37 +0900 (bf19def)
@@ -12729,11 +12729,11 @@ bracket_close(grn_ctx *ctx, grn_loader *loader)
   if (depth > sizeof(uint32_t) * loader->emit_level) {
     return;
   }
-  nvalues = values_len(ctx, value, value_end);
   if (depth == 0 || !loader->table ||
       loader->columns_status == GRN_LOADER_COLUMNS_BROKEN) {
     goto exit;
   }
+  nvalues = values_len(ctx, value, value_end);
 
   if (loader->columns_status == GRN_LOADER_COLUMNS_UNSET) {
     /*
-------------- next part --------------
HTML����������������������������...
Download 



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