Commit 850d74c4 authored by Pavel Emelyanov's avatar Pavel Emelyanov

ipc: Fix uninitialized ptr xfree-ing

  CC       ipc_ns.o
  ipc_ns.c: In function ‘dump_ipc_msg’:
  ipc_ns.c:240:2: error: ‘message’ may be used uninitialized in this function [-Werror=uninitialized]
  ipc_ns.c:192:17: note: ‘message’ was declared here
  cc1: all warnings being treated as errors
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e929b437
......@@ -189,7 +189,7 @@ static void pr_info_ipc_msg_entry(const IpcMsgEntry *msg)
static int dump_ipc_msg_queue_messages(int fd, const IpcMsgEntry *entry,
unsigned int msg_nr)
{
struct msgbuf *message;
struct msgbuf *message = NULL;
unsigned int msgmax;
int ret, msg_cnt = 0;
struct sysctl_req req[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment