Skip to content

Commit 4d43405

Browse files
Use NULL Instead of "NA" if there's no default printer
NULL makes clear that there's no default printer, while "NA" could even be the name of an actual printer, so use the former instead of the latter if no default printer could be determined. See also discussion in [1] where this preexisting issue was spotted. [1] OpenPrinting#33 (comment)
1 parent 69fd708 commit 4d43405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend_helper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ char *get_default_printer(BackendObj *b)
7979
}
8080
ippDelete(response);
8181
g_free(b->default_printer);
82-
b->default_printer = g_strdup("NA");
82+
b->default_printer = NULL;
8383
return b->default_printer;
8484
}
8585

0 commit comments

Comments
 (0)