From e9c4b3719ead046ea99bedc6462babd0f015f11e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 24 May 2022 10:18:02 +0200 Subject: [PATCH] reputation: fix multiline test --- src/tests/reputation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/reputation.c b/src/tests/reputation.c index fe7db4367c..65cedf3d82 100644 --- a/src/tests/reputation.c +++ b/src/tests/reputation.c @@ -120,11 +120,11 @@ static int SRepTest06(void) { TEST_INIT_WITH_PACKET("192.168.0.1"); - char str[] = - "0.0.0.0/0,1,10\n" - "192.168.0.0/16,2,127"; + char str1[] = "0.0.0.0/0,1,10\n"; + char str2[] = "192.168.0.0/16,2,127"; - FAIL_IF(SRepSplitLine(de_ctx->srepCIDR_ctx, str, &a, &cat, &value) != 1); + FAIL_IF(SRepSplitLine(de_ctx->srepCIDR_ctx, str1, &a, &cat, &value) != 1); + FAIL_IF(SRepSplitLine(de_ctx->srepCIDR_ctx, str2, &a, &cat, &value) != 1); cat = 1; FAIL_IF(SRepCIDRGetIPRepSrc(de_ctx->srepCIDR_ctx, p, cat, 0) != 10); -- 2.47.2