[Groonga-commit] groonga/groonga at 0347eee [master] dat: add missing return

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 27 11:56:19 JST 2016


Kouhei Sutou	2016-10-27 11:56:19 +0900 (Thu, 27 Oct 2016)

  New Revision: 0347eeeec7f4599196d1f635ef7157ec638b4691
  https://github.com/groonga/groonga/commit/0347eeeec7f4599196d1f635ef7157ec638b4691

  Message:
    dat: add missing return

  Modified files:
    lib/dat.cpp

  Modified: lib/dat.cpp (+3 -2)
===================================================================
--- lib/dat.cpp    2016-10-27 11:46:20 +0900 (ffa6ce6)
+++ lib/dat.cpp    2016-10-27 11:56:19 +0900 (b815e74)
@@ -1186,11 +1186,12 @@ grn_dat_is_dirty(grn_ctx *ctx, grn_dat *dat)
 grn_rc
 grn_dat_clean(grn_ctx *ctx, grn_dat *dat)
 {
+  grn_rc rc = GRN_SUCCESS;
+
   if (!dat->io) {
+    return rc;
   }
 
-  grn_rc rc = GRN_SUCCESS;
-
   {
     CriticalSection critical_section(&dat->lock);
     if (dat->is_dirty) {
-------------- next part --------------
HTML����������������������������...
Download 



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