[Groonga-mysql-commit] mroonga/mroonga [master] Fix not to use undefined variable

Back to archive index

HAYASHI Kentaro null+****@clear*****
Tue Nov 20 10:16:16 JST 2012


HAYASHI Kentaro	2012-11-20 10:16:16 +0900 (Tue, 20 Nov 2012)

  New Revision: 010627cc6b55d5e43951a2ba816a473acce45f27
  https://github.com/mroonga/mroonga/commit/010627cc6b55d5e43951a2ba816a473acce45f27

  Log:
    Fix not to use undefined variable

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2012-11-19 23:52:05 +0900 (5db4675)
+++ ha_mroonga.cpp    2012-11-20 10:16:16 +0900 (1c9aa9d)
@@ -8971,12 +8971,12 @@ void ha_mroonga::storage_store_field_timestamp(Field *field,
 #elif defined(MRN_TIMESTAMP_USE_MY_TIME_T)
   int32 sec, usec;
   GRN_TIME_UNPACK(time, sec, usec);
-  time_value.tv_sec -= mrn_utc_diff_in_seconds;
+  sec -= mrn_utc_diff_in_seconds;
   timestamp_field->store_TIME(sec, usec);
 #else
   int32 sec, usec __attribute__((unused));
   GRN_TIME_UNPACK(time, sec, usec);
-  time_value.tv_sec -= mrn_utc_diff_in_seconds;
+  sec -= mrn_utc_diff_in_seconds;
   timestamp_field->store_timestamp(sec);
 #endif
 }
-------------- next part --------------
HTML����������������������������...
Download 



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