Commit 59889957 by Mike Stump

Be sure to initialize the size before use.

From-SVN: r37199
parent 7a099817
...@@ -6,6 +6,7 @@ struct A ...@@ -6,6 +6,7 @@ struct A
int size; int size;
A () A ()
{ {
size = 20;
T *p; T *p;
p = new T[size]; p = new T[size];
int foo; int foo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment