aboutsummaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-07-16 00:37:28 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-07-16 00:37:28 +0000
commit3726e6c57f4e006f2744ab5b866ef98f2a79747d (patch)
tree1673c646d940b093299328b305321acdbb95a9ae /gas/listing.c
parent74a4e4306a729941354abd7a44bf289b2521164a (diff)
downloadgdb-3726e6c57f4e006f2744ab5b866ef98f2a79747d.zip
gdb-3726e6c57f4e006f2744ab5b866ef98f2a79747d.tar.gz
gdb-3726e6c57f4e006f2744ab5b866ef98f2a79747d.tar.bz2
2009-07-15 Kai Tietz <kai.tietz@onevision.com>
* listing.c (print_source): Initialize cache by NULL.
Diffstat (limited to 'gas/listing.c')
-rw-r--r--gas/listing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/listing.c b/gas/listing.c
index 3af70d7..aafc545 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -983,7 +983,7 @@ print_source (file_info_type * current_file,
#define NUM_CACHE_LINES 3
static cached_line cached_lines[NUM_CACHE_LINES];
static int next_free_line = 0;
- cached_line * cache;
+ cached_line * cache = NULL;
if (current_file->linenum > list->hll_line
&& list->hll_line > 0)