work around solaris pre-historic printf()
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Sep 2007 15:31:22 +0000 (15:31 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 Sep 2007 15:31:22 +0000 (15:31 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1542 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-ui/avahi-ui.c

index 402ae9d..f09dd1c 100644 (file)
@@ -507,7 +507,7 @@ static void browse_callback(
                                                   GTK_MESSAGE_ERROR,
                                                   GTK_BUTTONS_CLOSE,
                                                   "Browsing for service type %s in domain %s failed: %s",
-                                                  type, domain,
+                                                  type, domain ? domain : "n/a",
                                                   avahi_strerror(avahi_client_errno(d->priv->client)));
             gtk_dialog_run(GTK_DIALOG(m));
             gtk_widget_destroy(m);