aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2001-10-20 05:11:41 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2001-10-20 05:11:41 +0000
commit83413c558cdca7744ef4dcdff82678a5ea3e31c0 (patch)
tree5ad19d4d928e05dcd857ee3f87813e9cad4d4300 /gdb/valprint.c
parent457174f64589daa9de82ec30b109e69b1e28ce3b (diff)
downloadfsf-binutils-gdb-83413c558cdca7744ef4dcdff82678a5ea3e31c0.zip
fsf-binutils-gdb-83413c558cdca7744ef4dcdff82678a5ea3e31c0.tar.gz
fsf-binutils-gdb-83413c558cdca7744ef4dcdff82678a5ea3e31c0.tar.bz2
* win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may not
be able to read them in certain situations.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 3feb915..5af31ea 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1149,6 +1149,7 @@ val_print_string (CORE_ADDR addr, int len, int width, struct ui_file *stream)
found_nul = 0;
old_chain = make_cleanup (null_cleanup, 0);
+ bufptr = NULL;
if (len > 0)
{
buffer = (char *) xmalloc (len * width);