X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-dhcp%2Ftest-dhcp-option.c;h=ac0b0a435a93986b9ac5e3cdbbf551e873e2e277;hb=9bf3b53533cdc9b95c921b71da755401f223f765;hp=e2a680064c116db3bae3c5ef36c1d48a34755d14;hpb=d8b61a1dc9153c6f22c923b303b6235ff55122a3;p=elogind.git diff --git a/src/libsystemd-dhcp/test-dhcp-option.c b/src/libsystemd-dhcp/test-dhcp-option.c index e2a680064..ac0b0a435 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];