[waffle] [PATCH 19/29] core: wcore_error_reset() after calloc()
Emil Velikov
emil.l.velikov at gmail.com
Wed Jan 6 13:27:45 PST 2016
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
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
More information about the waffle
mailing list