summaryrefslogtreecommitdiff
path: root/binutils/resbin.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-04-09 17:15:00 +0000
committerNick Clifton <nickc@redhat.com>2002-04-09 17:15:00 +0000
commit73dc02b9e7f6c3d694fa25f4429b1e552656fb8c (patch)
tree5205e0b8428c542bdd3ba730f55db6038d915d62 /binutils/resbin.c
parent6d94c889d5dfa2d1879580ab0dddbcbc41a543cf (diff)
downloadbinutils-redhat-73dc02b9e7f6c3d694fa25f4429b1e552656fb8c.tar.gz
Don't print empty dialog caption.
Add testcase.
Diffstat (limited to 'binutils/resbin.c')
-rw-r--r--binutils/resbin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/resbin.c b/binutils/resbin.c
index bd116a2cfd..0684aec2ee 100644
--- a/binutils/resbin.c
+++ b/binutils/resbin.c
@@ -517,6 +517,8 @@ bin_to_res_dialog (data, length, big_endian)
d->caption = get_unicode (data + off, length - off, big_endian, &sublen);
off += sublen * 2 + 2;
+ if (sublen == 0)
+ d->caption = NULL;
if ((d->style & DS_SETFONT) == 0)
{