[gnome-settings-daemon] printer: Don't NULL check strings we've already checked
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] printer: Don't NULL check strings we've already checked
- Date: Wed, 4 Sep 2013 18:18:32 +0000 (UTC)
commit 7cfeddc1c6e2dfe8b1091dbed3465e1535bf66fb
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]