[lxc-devel] [lxc/master] conf: Fixes uninitialised variable.
tomponline on Github
lxc-bot at linuxcontainers.org
Tue Mar 5 16:38:56 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 341 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190305/bdef476f/attachment.bin>
-------------- next part --------------
From 251dec5aaceea2826a63911490c50d7952938e26 Mon Sep 17 00:00:00 2001
From: tomponline <tomp at tomp.uk>
Date: Tue, 5 Mar 2019 16:36:57 +0000
Subject: [PATCH] conf: Fixes uninitialised variable.
Signed-off-by: tomponline <tomp at tomp.uk>
---
src/lxc/conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 794a36fef9..9a610f0d97 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -2770,7 +2770,7 @@ struct lxc_conf *lxc_conf_init(void)
int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf,
size_t buf_size)
{
- __do_close_prot_errno int fd;
+ __do_close_prot_errno int fd = NULL;
int ret;
char path[PATH_MAX];
More information about the lxc-devel
mailing list