From 5fba7bbfa47ef5c03a28000252d06ec82405d461 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 12 Dec 2013 23:08:47 +0100 Subject: scan-build: silence some warnings test-fileio/test-strv: Use the streq_ptr to make build-scan not worry about passing in a null to a nonnull function. test-dhcp-option: Prevent a theoretical null pointer dereference --- src/test/test-strv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/test-strv.c') diff --git a/src/test/test-strv.c b/src/test/test-strv.c index 068e421097..d58d99c99f 100644 --- a/src/test/test-strv.c +++ b/src/test/test-strv.c @@ -367,7 +367,7 @@ static void test_strv_foreach_backwards(void) { assert_se(a); STRV_FOREACH_BACKWARDS(check, a) { - assert_se(streq(*check, input_table_multiple[i--])); + assert_se(streq_ptr(*check, input_table_multiple[i--])); } } -- cgit v1.2.3-54-g00ecf