From: Nathan Binkert Date: Wed, 7 Feb 2007 06:32:37 +0000 (-0800) Subject: Initialize the variable to something. X-Git-Tag: m5_2.0_beta3~216^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a19e9ea5fca3567bdf9d780b4e7669507daba88b;p=gem5.git Initialize the variable to something. --HG-- extra : convert_revision : bfe1e70130719ff239987d725b089c6d7152c541 --- 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');