From 4ac35997fec8378af808a06513dd317f4df2208e Mon Sep 17 00:00:00 2001
From: Xavier Robin <xavier.robin@unibas.ch>
Date: Mon, 11 Sep 2023 13:27:05 +0200
Subject: [PATCH] fix: SCHWED-6050 check status correctly to avoid assertion
 error

---
 modules/conop/src/compound_lib.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/conop/src/compound_lib.cc b/modules/conop/src/compound_lib.cc
index 2ec4ea8b2..befb94b4a 100644
--- a/modules/conop/src/compound_lib.cc
+++ b/modules/conop/src/compound_lib.cc
@@ -632,7 +632,7 @@ CompoundPtrList CompoundLib::FindCompounds(const String& query,
       // next row
       ret=sqlite3_step(stmt);
     }
-    assert(SQLITE_DONE==sqlite3_step(stmt));
+    assert(SQLITE_DONE==ret);
   } else {
     LOG_ERROR("ERROR: " << sqlite3_errmsg(db_->ptr));
     sqlite3_finalize(stmt);
-- 
GitLab