diff options
Diffstat (limited to 'usr.sbin/getpmac')
-rw-r--r-- | usr.sbin/getpmac/getpmac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/getpmac/getpmac.c b/usr.sbin/getpmac/getpmac.c index 6e81558..216b539 100644 --- a/usr.sbin/getpmac/getpmac.c +++ b/usr.sbin/getpmac/getpmac.c @@ -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); |