Fix issue in test suite.

This commit is contained in:
Patrick Pelissier committed 2020-05-24 20:39:20 +02:00
1 parent 9340c2e55c
commit cc45b9c1fe
1 file changed
+4 -2
+4 -2
View File
@@ -44,8 +44,10 @@ static void testobj_init_set(testobj_t d, const testobj_t s)
static void testobj_set(testobj_t d, const testobj_t s) static void testobj_set(testobj_t d, const testobj_t s)
{ {
testobj_clear(d); if (d != s) {
testobj_init_set(d, s); testobj_clear(d);
testobj_init_set(d, s);
}
} }
static void testobj_set_ui(testobj_t d, unsigned int v) static void testobj_set_ui(testobj_t d, unsigned int v)