aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-10-09 09:05:53 +0000
committerPedro Alves <palves@redhat.com>2007-10-09 09:05:53 +0000
commit51e9e0d47bada8db744674291badbbb30f4ea8a4 (patch)
treefbb838ceb4d8acbab0d8fe69a4e15265807b1a5d /gdb
parentcd6c7346a611f2b9f937c9d1e14fb565ab217a3c (diff)
downloadgdb-51e9e0d47bada8db744674291badbbb30f4ea8a4.zip
gdb-51e9e0d47bada8db744674291badbbb30f4ea8a4.tar.gz
gdb-51e9e0d47bada8db744674291badbbb30f4ea8a4.tar.bz2
* stabsread.c (read_huge_number): Initialize local variable to 0.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/stabsread.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d909550..bbadd6d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * stabsread.c (read_huge_number): Initialize local variable to 0.
+
2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
* p-lang.h (pascal_main_name): Add declaration.
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 036624f..929a856 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -3703,7 +3703,7 @@ read_huge_number (char **pp, int end, int *bits, int twos_complement_bits)
{
char *p = *pp;
int sign = 1;
- int sign_bit;
+ int sign_bit = 0;
long n = 0;
int radix = 10;
char overflow = 0;