aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
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);