Skip to content

Commit 4d7a656

Browse files
Use NULL Instead of "NA" if there's no default printer (#35)
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] #33 (comment)
1 parent 69fd708 commit 4d7a656

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend_helper.c

Lines changed: 1 addition & 1 deletion
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)