If the label being printed by getpmac(8) is empty, then don't print a
carriage return. Obtained from: TrustedBSD Project MFC after: 3 days
This commit is contained in:
parent
8b6dccee61
commit
5e1f7b807d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194555
@ -119,7 +119,8 @@ main(int argc, char *argv[])
|
||||
exit(EX_DATAERR);
|
||||
}
|
||||
|
||||
printf("%s\n", string);
|
||||
if (strlen(string) > 0)
|
||||
printf("%s\n", string);
|
||||
|
||||
mac_free(label);
|
||||
free(string);
|
||||
|
Loading…
Reference in New Issue
Block a user