[Groonga-commit] groonga/grngo at df7558a [master] Remove a long line.

Back to archive index

susumu.yata null+****@clear*****
Fri Jul 24 12:25:13 JST 2015


susumu.yata	2015-07-24 12:25:13 +0900 (Fri, 24 Jul 2015)

  New Revision: df7558a1fd380bdc5e17b0b83371632e318a3a2f
  https://github.com/groonga/grngo/commit/df7558a1fd380bdc5e17b0b83371632e318a3a2f

  Message:
    Remove a long line.

  Modified files:
    grngo.c

  Modified: grngo.c (+2 -2)
===================================================================
--- grngo.c    2015-07-24 12:20:48 +0900 (607e315)
+++ grngo.c    2015-07-24 12:25:13 +0900 (db82c82)
@@ -603,8 +603,8 @@ _grngo_push_src(grngo_column *column, grn_obj *table,
 
 static grn_rc
 _grngo_open_bufs(grngo_column *column) {
-  column->src_bufs = (grn_obj **)GRNGO_MALLOC(column->db,
-                                              sizeof(grn_obj *) * column->n_srcs);
+  size_t size = sizeof(grn_obj *) * column->n_srcs;
+  column->src_bufs = (grn_obj **)GRNGO_MALLOC(column->db, size);
   if (!column->src_bufs) {
     return GRN_NO_MEMORY_AVAILABLE;
   }
-------------- next part --------------
HTML����������������������������...
Download 



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