aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/strings.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 64d5ef4..7fe3154 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,9 @@
2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+ * strings.c (get_char): Initialize value.
+
+2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
* arlex.l: Silence compile warnings.
* arsup.h: Likewise. Fix formatting.
diff --git a/binutils/strings.c b/binutils/strings.c
index 89e322b..5c88175 100644
--- a/binutils/strings.c
+++ b/binutils/strings.c
@@ -421,7 +421,7 @@ get_char (stream, address, magiccount, magic)
char **magic;
{
int c, i;
- long r;
+ long r = EOF;
unsigned char buf[4];
for (i = 0; i < encoding_bytes; i++)