Skip to content

Commit cbb68c0

Browse files
committed
Fix uninitialized memory.
1 parent 3808ca5 commit cbb68c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_CFD/src/output/filewriter/CParallelDataSorter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void CParallelDataSorter::PrepareSendBuffers(std::vector<unsigned long>& globalI
324324
/*--- Allocate the data buffer to hold the sorted data. We have to make it large enough
325325
* to hold passivedoubles and su2doubles ---*/
326326
unsigned short maxSize = max(sizeof(passivedouble), sizeof(su2double));
327-
dataBuffer = new char[VARS_PER_POINT*nPoint_Recv[size]*maxSize];
327+
dataBuffer = new char[VARS_PER_POINT*nPoint_Recv[size]*maxSize] {};
328328

329329
/*--- doubleBuffer and passiveDouble buffer use the same memory allocated above using the dataBuffer. ---*/
330330

0 commit comments

Comments
 (0)