summaryrefslogtreecommitdiff
path: root/src/test/test-strv.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-12 23:08:47 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-12 23:08:47 +0100
commit5fba7bbfa47ef5c03a28000252d06ec82405d461 (patch)
tree0eb31cb025d794fc999aeebb92c93b5e00b18b8d /src/test/test-strv.c
parente4bb80a07610e6559aa6d2d763fd0b78634a4b12 (diff)
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
Diffstat (limited to 'src/test/test-strv.c')
-rw-r--r--src/test/test-strv.c2
1 files changed, 1 insertions, 1 deletions
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--]));
}
}