Clear errors reported.
authorRoy Marples <roy@marples.name>
Fri, 23 Jan 2009 15:03:06 +0000 (15:03 +0000)
committerRoy Marples <roy@marples.name>
Fri, 23 Jan 2009 15:03:06 +0000 (15:03 +0000)
main.c

diff --git a/main.c b/main.c
index 1b6e522dbb41f210bd56ece496c6ed6b7b1357ad..502a02a750080a2ee8ab452a7ed7d2b24d8c1489 100644 (file)
--- a/main.c
+++ b/main.c
@@ -546,6 +546,7 @@ main(int argc, char *argv[])
 
        g_message("connecting to dhcpcd-dbus ...");
        while (--tries > 0) {
+               g_clear_error(&error);
                if (dbus_g_proxy_call_with_timeout(bus_proxy,
                                                   "GetVersion",
                                                   500,