Signed-off-by: Emil Velikov <[email protected]>
---
src/waffle/core/wcore_config_attrs_unittest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/waffle/core/wcore_config_attrs_unittest.c
b/src/waffle/core/wcore_config_attrs_unittest.c
index e6a2af0..14eec01 100644
--- a/src/waffle/core/wcore_config_attrs_unittest.c
+++ b/src/waffle/core/wcore_config_attrs_unittest.c
@@ -71,14 +71,14 @@ setup(void **state) {
struct test_state_wcore_config_attrs *ts;
- wcore_error_reset();
-
ts = calloc(1, sizeof(*ts));
if (!ts)
return -1;
*state = ts;
+ wcore_error_reset();
+
// Fill actual_attrs with canaries.
memset(&ts->actual_attrs, 0x99, sizeof(ts->actual_attrs));
--
2.6.2
_______________________________________________
waffle mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/waffle