]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3991] Fixed CWE 398 duplicateExpression
authorFrancis Dupont <fdupont@isc.org>
Tue, 12 May 2026 09:19:32 +0000 (11:19 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 27 May 2026 20:03:02 +0000 (22:03 +0200)
src/lib/exceptions/tests/exceptions_unittest.cc

index 3b9e0fe7b5e055ca8dbe2f5683f20eb9ae60ffef..50d78e7ed3d453706af541c95c7f9692466a2a14 100644 (file)
@@ -101,9 +101,10 @@ TEST_F(ExceptionTest, message) {
 // Sanity check that 'isc_throw_assert' macro operates correctly.
 TEST(IscThrowAssert, checkMessage) {
     int m = 5;
+    int m1 = 5;
     int n = 7;
 
-    ASSERT_NO_THROW(isc_throw_assert(m == m));
+    ASSERT_NO_THROW(isc_throw_assert(m == m1));
 
     int line_no;
     try {