Ubuntu Pastebin

Paste from Nick at Fri, 28 Apr 2017 11:56:01 +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
diff --git a/libnm/nm-manager.c b/libnm/nm-manager.c
index 1b453bd..9a82507 100644
--- a/libnm/nm-manager.c
+++ b/libnm/nm-manager.c
@@ -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 (NMManager *self, const char *ac_path)
 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 *self)
        GDBusObjectManager *object_manager = NULL;
        GError *error;
 
+       g_return_if_fail (NM_IS_MANAGER (self));
+
Download as text