Commit 2eabc745 authored by Mark Andrews's avatar Mark Andrews
Browse files

Merge branch '715-side-effect-in-assertion-in-name_test-c' into 'master'

Resolve "side effect in assertion in name_test.c"

Closes #715

See merge request !1102
parents e9d999f6 2156a5b6
Pipeline #7157 passed with stages
in 15 minutes and 31 seconds
......@@ -606,7 +606,6 @@ getlabel_test(void **state) {
dns_fixedname_t f1, f2;
dns_name_t *n1, *n2;
dns_label_t l1, l2;
unsigned char *p1, *p2;
unsigned int j;
n1 = dns_fixedname_initname(&f1);
......@@ -623,10 +622,8 @@ getlabel_test(void **state) {
dns_name_getlabel(n2, testcases[i].pos2, &l2);
assert_int_equal(l1.length, l2.length);
p1 = l1.base;
p2 = l2.base;
for (j = 0; j < l1.length; j++) {
assert_int_equal(*p1++, *p2++);
assert_int_equal(l1.base[j], l2.base[j]);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment