[CRIU] [PATCH] lib: Initialize child messages correctly

Tycho Andersen tycho.andersen at canonical.com
Thu Jul 31 08:51:49 PDT 2014


Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 lib/criu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/criu.c b/lib/criu.c
index f964115..d4f6e30 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -203,6 +203,8 @@ int criu_add_ext_mount(char *key, char *val)
 	m = malloc(sizeof(*m));
 	if (!m)
 		goto er;
+	ext_mount_map__init(m);
+
 	m->key = strdup(key);
 	if (!m->key)
 		goto er_n;
@@ -238,6 +240,8 @@ int criu_add_veth_pair(char *in, char *out)
 	p = malloc(sizeof(*p));
 	if (!p)
 		goto er;
+	criu_veth_pair__init(p);
+
 	p->if_in = strdup(in);
 	if (!p->if_in)
 		goto er_p;
-- 
1.9.1



More information about the CRIU mailing list