[gnome-settings-daemon/gnome-3-8] printer: Don't NULL check strings we've already checked



commit d9320637012965f921920acdea22e02ffc37751f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 3 17:21:01 2013 -0400

    printer: Don't NULL check strings we've already checked

 plugins/print-notifications/gsd-printer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-printer.c b/plugins/print-notifications/gsd-printer.c
index c985d0d..d344512 100644
--- a/plugins/print-notifications/gsd-printer.c
+++ b/plugins/print-notifications/gsd-printer.c
@@ -483,9 +483,9 @@ add_printer (gchar *printer_name,
         output = g_dbus_proxy_call_sync (proxy,
                                          "PrinterAdd",
                                          g_variant_new ("(sssss)",
-                                                        printer_name ? printer_name : "",
-                                                        device_uri ? device_uri : "",
-                                                        ppd_name ? ppd_name : "",
+                                                        printer_name,
+                                                        device_uri,
+                                                        ppd_name,
                                                         info ? info : "",
                                                         location ? location : ""),
                                          G_DBUS_CALL_FLAGS_NONE,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]