mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue