summaryrefslogtreecommitdiffstats
path: root/network/NetworkManager/patches/wired-fix-uninitialized-variable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/NetworkManager/patches/wired-fix-uninitialized-variable.patch')
-rw-r--r--network/NetworkManager/patches/wired-fix-uninitialized-variable.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/network/NetworkManager/patches/wired-fix-uninitialized-variable.patch b/network/NetworkManager/patches/wired-fix-uninitialized-variable.patch
new file mode 100644
index 0000000000..44499939e9
--- /dev/null
+++ b/network/NetworkManager/patches/wired-fix-uninitialized-variable.patch
@@ -0,0 +1,25 @@
+From 2236c1f318bcbdd50820296136a25bade5fcef9e Mon Sep 17 00:00:00 2001
+From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
+Date: Fri, 19 Nov 2010 16:17:40 -0600
+Subject: [PATCH 2/4] wired: fix uninitialized variable
+
+---
+ src/nm-device-ethernet.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/nm-device-ethernet.c b/src/nm-device-ethernet.c
+index 08bbc50..251a54c 100644
+--- a/src/nm-device-ethernet.c
++++ b/src/nm-device-ethernet.c
+@@ -308,7 +308,7 @@ _update_s390_subchannels (NMDeviceEthernet *self)
+ const char *iface;
+ GUdevClient *client;
+ GUdevDevice *dev;
+- GUdevDevice *parent;
++ GUdevDevice *parent = NULL;
+ const char *parent_path, *item, *driver;
+ const char *subsystems[] = { "net", NULL };
+ GDir *dir;
+--
+1.7.3.4
+