[systemd-commits] src/network
Tom Gundersen
tomegun at kemper.freedesktop.org
Wed Nov 27 07:42:37 PST 2013
src/network/networkd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e877666c1553a3dd5b05b4c48090f889ffc079e6
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Nov 27 17:28:54 2013 +0200
networkd: Initialize variable to NULL
If any number of arguments are given, _cleanup_manager_free_ is used
with unitialized memory causing a crash.
diff --git a/src/network/networkd.c b/src/network/networkd.c
index 1d43361..360afba 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);
More information about the systemd-commits
mailing list