[lxc-devel] [PATCH 8/9] lxc_user_nic: initialize cnic to NULL to please compiler
Serge Hallyn
serge at mail.hallyn.com
Tue Nov 19 16:17:51 UTC 2013
From: Serge Hallyn <serge.hallyn at ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
src/lxc/lxc_user_nic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxc_user_nic.c b/src/lxc/lxc_user_nic.c
index caa20df..7d367c1 100644
--- a/src/lxc/lxc_user_nic.c
+++ b/src/lxc/lxc_user_nic.c
@@ -906,7 +906,7 @@ int main(int argc, char *argv[])
bool gotone = false;
char *me;
char *nicname = alloca(40);
- char *cnic; // created nic name in container is returned here.
+ char *cnic = NULL; // created nic name in container is returned here.
char *vethname;
int pid;
--
1.8.3.2
More information about the lxc-devel
mailing list