[Groonga-commit] groonga/groonga at 7075f3b [master] functions/time: suppress an "may be uninitialized" warning

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jun 13 18:36:20 JST 2016


Kouhei Sutou	2016-06-13 18:36:20 +0900 (Mon, 13 Jun 2016)

  New Revision: 7075f3bbc9ca9e33088abdd253d9e5848da97012
  https://github.com/groonga/groonga/commit/7075f3bbc9ca9e33088abdd253d9e5848da97012

  Message:
    functions/time: suppress an "may be uninitialized" warning

  Modified files:
    plugins/functions/time.c

  Modified: plugins/functions/time.c (+1 -1)
===================================================================
--- plugins/functions/time.c    2016-06-13 17:54:16 +0900 (a5a5c0d)
+++ plugins/functions/time.c    2016-06-13 18:36:20 +0900 (18ca8cf)
@@ -45,7 +45,7 @@ func_time_classify_raw(grn_ctx *ctx,
   grn_obj *time;
   uint32_t interval_raw = 1;
   grn_obj *classed_time;
-  grn_bool accept_interval;
+  grn_bool accept_interval = GRN_TRUE;
 
   switch (unit) {
   case GRN_TIME_CLASSIFY_UNIT_SECOND :
-------------- next part --------------
HTML����������������������������...
下载 



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