diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/print_panel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print_panel.cxx b/src/print_panel.cxx index efc46d9c6..6f0ca506d 100644 --- a/src/print_panel.cxx +++ b/src/print_panel.cxx @@ -574,11 +574,11 @@ void print_update_status() { char name[1024]; int val; - snprintf(name, sizeof(name), "%s/page_size", printer); + snprintf(name, sizeof(name), "%s/page_size", printer == NULL ? "" : printer); print_prefs.get(name, val, 1); print_page_size->value(val); - snprintf(name, sizeof(name), "%s/output_mode", printer); + snprintf(name, sizeof(name), "%s/output_mode", printer == NULL ? "" : printer); print_prefs.get(name, val, 0); print_output_mode[val]->setonly(); } |
