Be sure to initialize the size before use.
From-SVN: r37199
This commit is contained in:
parent
7a09981746
commit
5988995700
@ -6,6 +6,7 @@ struct A
|
||||
int size;
|
||||
A ()
|
||||
{
|
||||
size = 20;
|
||||
T *p;
|
||||
p = new T[size];
|
||||
int foo;
|
||||
|
Loading…
Reference in New Issue
Block a user