diff options
| author | rilysh <nightquick@proton.me> | 2024-04-19 22:53:05 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-04-19 22:54:30 +0000 |
| commit | 0bdcfb08f2d5b80523275adcdd64facb102eedbc (patch) | |
| tree | 727cea3e5408c993cae0fd6b83f865a74577fc77 /usr.bin | |
| parent | 1f2776e123603042944aad9f41ceb46b5b28d8ae (diff) | |
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/units/units.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index 78b7e4020ed3..1b6d0ed90b4a 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -497,8 +497,7 @@ lookupunit(const char *unit) } } free(copy); - } - if (unit[strlen(unit) - 1] == 's') { + } else if (unit[strlen(unit) - 1] == 's') { copy = dupstr(unit); copy[strlen(copy) - 1] = 0; for (i = 0; i < unitcount; i++) { |
