summaryrefslogtreecommitdiff
path: root/src/libsystemd-dhcp
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/libsystemd-dhcp
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/libsystemd-dhcp')
-rw-r--r--src/libsystemd-dhcp/test-dhcp-option.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-dhcp/test-dhcp-option.c b/src/libsystemd-dhcp/test-dhcp-option.c
index e2a680064c..ac0b0a435a 100644
--- a/src/libsystemd-dhcp/test-dhcp-option.c
+++ b/src/libsystemd-dhcp/test-dhcp-option.c
@@ -198,6 +198,7 @@ static int test_options_cb(uint8_t code, uint8_t len, const uint8_t *option,
*descpos = -1;
}
+ assert(descpos);
assert(*descpos != -1);
optcode = descoption[*descpos];