summaryrefslogtreecommitdiff
path: root/src/unittest/cprintftest.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-02-06 22:32:37 -0800
committerNathan Binkert <binkertn@umich.edu>2007-02-06 22:32:37 -0800
commita19e9ea5fca3567bdf9d780b4e7669507daba88b (patch)
tree9552b23c52d1b821e4ba254b01d3eb6bb37e8884 /src/unittest/cprintftest.cc
parent38db47005c9126949593a307e18641b2fc4d9e85 (diff)
downloadgem5-a19e9ea5fca3567bdf9d780b4e7669507daba88b.tar.xz
Initialize the variable to something.
--HG-- extra : convert_revision : bfe1e70130719ff239987d725b089c6d7152c541
Diffstat (limited to 'src/unittest/cprintftest.cc')
-rw-r--r--src/unittest/cprintftest.cc2
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');