From: Harlan Stenn Date: Sat, 5 Dec 2015 10:18:23 +0000 (+0000) Subject: sntp/tests/keyFile.c lint X-Git-Tag: NTP_4_3_87~1^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c949f33a5d10944d61631f42aab4c2c916df19c;p=thirdparty%2Fntp.git sntp/tests/keyFile.c lint bk: 5662b9efPLcdAKcmR6BbjFAU5NhLoA --- diff --git a/sntp/tests/keyFile.c b/sntp/tests/keyFile.c index 77dfee7f0..240b944ac 100644 --- a/sntp/tests/keyFile.c +++ b/sntp/tests/keyFile.c @@ -140,10 +140,12 @@ test_ReadKeyFileWithComments(void) { void test_ReadKeyFileWithInvalidHex(void) { struct key* keys = NULL; + const char *path = CreatePath("key-test-invalid-hex", INPUT_DIR); - TEST_ASSERT_EQUAL(1, auth_init(CreatePath("key-test-invalid-hex", INPUT_DIR), &keys)); - + TEST_ASSERT_NOT_NULL(path); + TEST_ASSERT_EQUAL(1, auth_init(path, &keys)); TEST_ASSERT_NOT_NULL(keys); + free((void *)path); struct key* result = NULL; get_key(10, &result);