aboutsummaryrefslogtreecommitdiff
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
commit420380ba3ec986199ec3af195850d75129c4f229 (patch)
tree6968c5aa66c933b280ae2cd23b05b5225804efb2 /binutils/resbin.c
parentb24eb5ac22f573f4f45547872cdadcf7f7c9d682 (diff)
downloadgdb-420380ba3ec986199ec3af195850d75129c4f229.zip
gdb-420380ba3ec986199ec3af195850d75129c4f229.tar.gz
gdb-420380ba3ec986199ec3af195850d75129c4f229.tar.bz2
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 bd116a2..0684aec 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)
{