diff options
author | kaiw <kaiw@FreeBSD.org> | 2015-12-13 08:27:14 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2015-12-13 08:27:14 +0000 |
commit | 0f120b427b87875206ff7d1076f677baddb201f1 (patch) | |
tree | b676b941faeb76909efde9337b78725c593b39f5 /contrib/elftoolchain/readelf | |
parent | 7c84ce2c10d79175d8b41b6e878ddadb438d4b6a (diff) | |
download | FreeBSD-src-0f120b427b87875206ff7d1076f677baddb201f1.zip FreeBSD-src-0f120b427b87875206ff7d1076f677baddb201f1.tar.gz |
Fixed uninitialized variable warnings.
Diffstat (limited to 'contrib/elftoolchain/readelf')
-rw-r--r-- | contrib/elftoolchain/readelf/readelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index d768f6c..6902024 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -4814,6 +4814,7 @@ dump_dwarf_line(struct readelf *re) } endoff = offset + length; + pe = (uint8_t *) d->d_buf + endoff; version = re->dw_read(d, &offset, 2); hdrlen = re->dw_read(d, &offset, dwarf_size); minlen = re->dw_read(d, &offset, 1); @@ -4879,7 +4880,6 @@ dump_dwarf_line(struct readelf *re) #define ADDRESS(x) ((((x) - opbase) / lrange) * minlen) p++; - pe = (uint8_t *) d->d_buf + endoff; printf("\n"); printf(" Line Number Statements:\n"); @@ -7476,7 +7476,7 @@ static int64_t _decode_sleb128(uint8_t **dp, uint8_t *dpe) { int64_t ret = 0; - uint8_t b; + uint8_t b = 0; int shift = 0; uint8_t *src = *dp; |