From a19e9ea5fca3567bdf9d780b4e7669507daba88b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 6 Feb 2007 22:32:37 -0800 Subject: [PATCH] Initialize the variable to something. --HG-- extra : convert_revision : bfe1e70130719ff239987d725b089c6d7152c541 --- src/unittest/cprintftest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.30.2