From 67c1413d7f56cc04f7dba8b64cac364cbfa11e42 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 5 Apr 1996 03:07:54 +0000 Subject: [PATCH] * symfile.c (generic_load): Initialize data_count properly. --- gdb/ChangeLog | 4 ++++ gdb/symfile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4bb12a98e4..53a240117f3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 4 19:04:18 1996 Stan Shebs + + * symfile.c (generic_load): Initialize data_count properly. + Thu Apr 4 17:17:53 1996 Fred Fish * symmisc.c (print_objfile_statistics): Print memory used by diff --git a/gdb/symfile.c b/gdb/symfile.c index f5d4e155249..e95d1db0007 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -919,7 +919,7 @@ generic_load (filename, from_tty) asection *s; bfd *loadfile_bfd; time_t start_time, end_time; /* Start and end times of download */ - unsigned long data_count; /* Number of bytes transferred to memory */ + unsigned long data_count = 0; /* Number of bytes transferred to memory */ loadfile_bfd = bfd_openr (filename, gnutarget); if (loadfile_bfd == NULL) -- 2.30.2