X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibsystemd-dhcp%2Ftest-dhcp-option.c;h=ac0b0a435a93986b9ac5e3cdbbf551e873e2e277;hp=e2a680064c116db3bae3c5ef36c1d48a34755d14;hb=234fc2dfce0e749f6e88301f2c82a3e54ccaa5fa;hpb=d8b61a1dc9153c6f22c923b303b6235ff55122a3 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];