aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-02-23 19:41:47 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-02-23 19:41:47 +0000
commit81cb7cc9593906916e1cdac22c0b8764a2c90114 (patch)
treeed80999123fbbd15926a02423869152965ce6f50
parentc38f98038dd46580d5cdfcdf0b7a9002e1c1f246 (diff)
downloadgdb-81cb7cc9593906916e1cdac22c0b8764a2c90114.zip
gdb-81cb7cc9593906916e1cdac22c0b8764a2c90114.tar.gz
gdb-81cb7cc9593906916e1cdac22c0b8764a2c90114.tar.bz2
2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
* printcmd.c (print_scalar_formatted): Initialize val_long to remove compiler warning message.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/printcmd.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 03a855f..24bf4da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
+ * printcmd.c (print_scalar_formatted): Initialize val_long
+ to remove compiler warning message.
+
+2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
+
* defs.h (nquery, yquery): New prototypes.
* breakpoint.c (break_command_1): Use new nquery interface.
* utils.c (defaulted_query, nquery, yquery): New functions.
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 72da949..a93ddbf 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -347,7 +347,7 @@ void
print_scalar_formatted (void *valaddr, struct type *type, int format, int size,
struct ui_file *stream)
{
- LONGEST val_long;
+ LONGEST val_long = 0;
unsigned int len = TYPE_LENGTH (type);
if (format != 'f')