summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-28 01:09:03 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-28 01:09:03 +0000
commit2001cde81e7327244d17412348cc322535a6d46b (patch)
treec9a156105c96036c91e687bffb16e80deb51290b /src/od.c
parent80664a7d82bb9b66ebd2345fb5d56990625eff65 (diff)
downloadcoreutils-2001cde81e7327244d17412348cc322535a6d46b.tar.xz
(format_address_paren): c is optional, so don't output it if it's '\0'.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/od.c b/src/od.c
index 0343cd789..dc9ae1f9c 100644
--- a/src/od.c
+++ b/src/od.c
@@ -1138,7 +1138,8 @@ format_address_paren (uintmax_t address, char c)
{
putchar ('(');
format_address_std (address, ')');
- putchar (c);
+ if (c)
+ putchar (c);
}
static void