NULL error
authorRoy Marples <roy@marples.name>
Sat, 28 Feb 2009 22:33:01 +0000 (22:33 +0000)
committerRoy Marples <roy@marples.name>
Sat, 28 Feb 2009 22:33:01 +0000 (22:33 +0000)
main.c

diff --git a/main.c b/main.c
index 292eeeb56784a6efa6ec00d395e7eb31243b9754..a1b9b906fc25d2c6178c4b1d261a14f158d4cbbc 100644 (file)
--- a/main.c
+++ b/main.c
@@ -153,6 +153,7 @@ get_scan_results(struct if_msg *ifm)
        otype = dbus_g_type_get_map("GHashTable", G_TYPE_STRING, G_TYPE_VALUE);
        otype = dbus_g_type_get_collection("GPtrArray", otype);
 
+       error = NULL;
        if (!dbus_g_proxy_call(dbus, "ScanResults", &error,
                G_TYPE_STRING, ifm->ifname, G_TYPE_INVALID,
                otype, &array, G_TYPE_INVALID))