aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
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 /gdb/printcmd.c
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.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c2
1 files changed, 1 insertions, 1 deletions
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')