diff options
author | Nick Clifton <nickc@redhat.com> | 2002-04-09 17:15:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-04-09 17:15:00 +0000 |
commit | 420380ba3ec986199ec3af195850d75129c4f229 (patch) | |
tree | 6968c5aa66c933b280ae2cd23b05b5225804efb2 /binutils/resbin.c | |
parent | b24eb5ac22f573f4f45547872cdadcf7f7c9d682 (diff) | |
download | gdb-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.c | 2 |
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) { |