[Groonga-commit] groonga/grnxx at b0355c3 [master] Add a missing null check. (#127)

Back to archive index

susumu.yata null+****@clear*****
Fri Dec 5 19:15:33 JST 2014


susumu.yata	2014-12-05 19:15:33 +0900 (Fri, 05 Dec 2014)

  New Revision: b0355c31fce05899d01a945ce7445c936b9071c1
  https://github.com/groonga/grnxx/commit/b0355c31fce05899d01a945ce7445c936b9071c1

  Message:
    Add a missing null check. (#127)

  Modified files:
    lib/grnxx/impl/table.cpp

  Modified: lib/grnxx/impl/table.cpp (+3 -1)
===================================================================
--- lib/grnxx/impl/table.cpp    2014-12-05 19:07:27 +0900 (cf2bd1d)
+++ lib/grnxx/impl/table.cpp    2014-12-05 19:15:33 +0900 (1872a7d)
@@ -366,7 +366,9 @@ Int Table::find_or_insert_row(const Datum &key, bool *inserted) {
     key_column_->set_key(row_id, key);
   }
   validate_row(row_id);
-  *inserted = true;
+  if (inserted) {
+    *inserted = true;
+  }
   return row_id;
 }
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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