diff options
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 0c4740b47..6a532fa9d 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -545,7 +545,8 @@ decode_one_format(const char *s_orig, const char *s, struct tspec *tspec) | |||
545 | 545 | ||
546 | c = *s++; | 546 | c = *s++; |
547 | p = strchr(CSIL, *s); | 547 | p = strchr(CSIL, *s); |
548 | if (!p) { | 548 | /* if *s == NUL, p != NULL! Testcase: "od -tx" */ |
549 | if (!p || *p == '\0') { | ||
549 | size = sizeof(int); | 550 | size = sizeof(int); |
550 | if (isdigit(s[0])) { | 551 | if (isdigit(s[0])) { |
551 | size = bb_strtou(s, &end, 0); | 552 | size = bb_strtou(s, &end, 0); |