summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-11-27 17:28:54 +0200
committerTom Gundersen <teg@jklm.no>2013-11-27 16:44:54 +0100
commite877666c1553a3dd5b05b4c48090f889ffc079e6 (patch)
treeb938dcdb6555526750ea93ea84083553d5a5d5e5 /src
parentff70c61b6fce5547fe22992e561941eff8456c9b (diff)
networkd: Initialize variable to NULL
If any number of arguments are given, _cleanup_manager_free_ is used with unitialized memory causing a crash.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c
index 1d43361201..360afba986 100644
--- a/src/network/networkd.c
+++ b/src/network/networkd.c
@@ -25,7 +25,7 @@
#include "networkd.h"
int main(int argc, char *argv[]) {
- _cleanup_manager_free_ Manager *m;
+ _cleanup_manager_free_ Manager *m = NULL;
int r;
log_set_target(LOG_TARGET_AUTO);