[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Changes variable scope about db_len

Back to archive index

HAYASHI Kentaro null+****@clear*****
Thu Oct 4 11:09:03 JST 2012


HAYASHI Kentaro	2012-06-28 10:09:19 +0900 (Thu, 28 Jun 2012)

  New Revision: b9d5120f94cae3076cda8b63ba751312de40436b
  https://github.com/mroonga/mroonga/commit/b9d5120f94cae3076cda8b63ba751312de40436b

  Log:
    Changes variable scope about db_len

  Modified files:
    lib/mrn_path_mapper.cpp

  Modified: lib/mrn_path_mapper.cpp (+1 -1)
===================================================================
--- lib/mrn_path_mapper.cpp    2012-06-27 19:18:49 +0900 (086cba6)
+++ lib/mrn_path_mapper.cpp    2012-06-28 10:09:19 +0900 (73e5c6f)
@@ -48,9 +48,9 @@ namespace mrn {
       return db_path_;
     }
 
-    size_t db_len = strlen(db_path_);
     if (strncmp(mysql_path_, "./", 2) == 0) {
       if (path_prefix_) {
+        size_t db_len = strlen(db_path_);
         strncat(db_path_, path_prefix_, MRN_MAX_PATH_SIZE - db_len - 1);
       }
 
-------------- next part --------------
HTML����������������������������...
Download 



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