Skip to content

Commit

Permalink
tools/list: print an empty string for null vendor strings
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <[email protected]>
  • Loading branch information
whot committed Nov 10, 2021
1 parent abb115c commit 50a2456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/registry-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ main(int argc, char **argv)
m = rxkb_model_first(ctx);
assert(m); /* Empty model list is usually a bug or a bad xml file */
while (m) {
const char *vendor = rxkb_model_get_vendor(m);
printf("- name: %s\n"
" vendor: %s\n"
" description: %s\n",
rxkb_model_get_name(m),
rxkb_model_get_vendor(m),
vendor ? vendor : "''",
rxkb_model_get_description(m));
m = rxkb_model_next(m);
}
Expand Down

0 comments on commit 50a2456

Please sign in to comment.