From: Thomas Hindoe Paaboel Andersen Date: Mon, 8 Sep 2014 20:05:17 +0000 (+0200) Subject: namespace: avoid posible use of uninitialized variable X-Git-Tag: v217~621 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=120d578e5fa11ee3c210121905fb63bc24e3f043 namespace: avoid posible use of uninitialized variable --- diff --git a/src/core/namespace.c b/src/core/namespace.c index eaaebdd64..f76d3891c 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -278,7 +278,7 @@ static int mount_kdbus(BindMount *m) { char temporary_mount[] = "/tmp/kdbus-dev-XXXXXX"; _cleanup_free_ char *basepath = NULL; _cleanup_umask_ mode_t u; - char *busnode, *root; + char *busnode = NULL, *root; struct stat st; int r;