aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/common/printers.h
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/arch/common/printers.h')
-rw-r--r--hardinfo2/arch/common/printers.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hardinfo2/arch/common/printers.h b/hardinfo2/arch/common/printers.h
index 01beb5dd..af4793ac 100644
--- a/hardinfo2/arch/common/printers.h
+++ b/hardinfo2/arch/common/printers.h
@@ -63,7 +63,11 @@ scan_printers(void)
noprinters = cupsGetPrinters(&printers);
default_printer = cupsGetDefault();
-
+
+ if (!default_printer) {
+ default_printer = "";
+ }
+
if (noprinters > 0) {
printer_list = g_strdup_printf("[Printers (CUPS)]\n");
for (i = 0; i < noprinters; i++) {