diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-11-27 17:28:54 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-11-27 16:44:54 +0100 |
commit | e877666c1553a3dd5b05b4c48090f889ffc079e6 (patch) | |
tree | b938dcdb6555526750ea93ea84083553d5a5d5e5 | |
parent | ff70c61b6fce5547fe22992e561941eff8456c9b (diff) |
networkd: Initialize variable to NULL
If any number of arguments are given, _cleanup_manager_free_ is used
with unitialized memory causing a crash.
-rw-r--r-- | src/network/networkd.c | 2 |
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); |