diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-02-06 22:32:37 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-02-06 22:32:37 -0800 |
commit | a19e9ea5fca3567bdf9d780b4e7669507daba88b (patch) | |
tree | 9552b23c52d1b821e4ba254b01d3eb6bb37e8884 /src/unittest | |
parent | 38db47005c9126949593a307e18641b2fc4d9e85 (diff) | |
download | gem5-a19e9ea5fca3567bdf9d780b4e7669507daba88b.tar.xz |
Initialize the variable to something.
--HG--
extra : convert_revision : bfe1e70130719ff239987d725b089c6d7152c541
Diffstat (limited to 'src/unittest')
-rw-r--r-- | src/unittest/cprintftest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unittest/cprintftest.cc b/src/unittest/cprintftest.cc index a454be05e..7fb10375c 100644 --- a/src/unittest/cprintftest.cc +++ b/src/unittest/cprintftest.cc @@ -40,7 +40,7 @@ using namespace std; int main() { - char foo[9]; + char foo[] = "foo"; cprintf("%s\n", foo); cprintf("%d\n", 'A'); |