]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
lib/isc/tests/md_test.c: Silence sizeofFunctionCall Cppcheck
authorOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 08:21:04 +0000 (10:21 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 10:44:02 +0000 (12:44 +0200)
lib/isc/tests/md_test.c

index e23862227964237483d58bcf3ba0cced59ef01d4..9c97b1b23eee06fbad568d1e3b40952b5f4162f9 100644 (file)
@@ -92,6 +92,7 @@ isc_md_test(isc_md_t *md, isc_md_type_t type, const char *buf, size_t buflen,
        assert_int_equal(isc_md_init(md, type), ISC_R_SUCCESS);
 
        int i;
+       isc_result_t res;
 
        for (i = 0; i < repeats; i++) {
                assert_int_equal(
@@ -109,7 +110,8 @@ isc_md_test(isc_md_t *md, isc_md_type_t type, const char *buf, size_t buflen,
        isc_buffer_t b;
        isc_buffer_init(&b, hexdigest, sizeof(hexdigest));
 
-       assert_return_code(isc_hex_totext(&r, 0, "", &b), ISC_R_SUCCESS);
+       res = isc_hex_totext(&r, 0, "", &b);
+       assert_return_code(res, ISC_R_SUCCESS);
 
        assert_memory_equal(hexdigest, result, (result?strlen(result):0));
        assert_int_equal(isc_md_reset(md), ISC_R_SUCCESS);