Fix missing initialization in save_msgq_data() that triggers a segfault
in realloc() when cr is compiled with -g.

Signed-off-by: Benjamin Thery <[EMAIL PROTECTED]>
---
 container_ckpt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: cryodev/container_ckpt.c
===================================================================
--- cryodev.orig/container_ckpt.c
+++ cryodev/container_ckpt.c
@@ -249,7 +249,7 @@ static void save_msgq_data(int fd, msgqi
         */
        for (i = 0; i < minfo->nr_entries; i++) {
                int m;
-               struct msq_msg *msg_array;
+               struct msq_msg *msg_array = NULL;
                struct msgbuf *msg = NULL;
 
                /*

-- 
_______________________________________________
Containers mailing list
[EMAIL PROTECTED]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to