Ubuntu Pastebin

Paste from Nick at Fri, 28 Apr 2017 11:54:23 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Index: nm-1.6/libnm/nm-manager.c
===================================================================
--- nm-1.6.orig/libnm/nm-manager.c      2017-04-28 12:34:10.278642076 +0100
+++ nm-1.6/libnm/nm-manager.c   2017-04-28 12:34:10.278642076 +0100
@@ -1,4 +1,5 @@
 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
 /*
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -789,7 +790,7 @@ find_active_connection_by_path (NMManage
 static void
 recheck_pending_activations (NMManager *self)
 {
-       NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
+       NMManagerPrivate *priv;
        GSList *iter, *next;
        NMActiveConnection *candidate;
        const GPtrArray *devices;
@@ -797,6 +798,9 @@ recheck_pending_activations (NMManager *
        GDBusObjectManager *object_manager = NULL;
        GError *error;
 
+       g_return_if_fail (NM_IS_MANAGER (self));
+
+       priv = NM_MANAGER_GET_PRIVATE (self);
        object_manager = _nm_object_get_dbus_object_manager (NM_OBJECT (self));
Download as text