We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3808ca5 commit cbb68c0Copy full SHA for cbb68c0
1 file changed
SU2_CFD/src/output/filewriter/CParallelDataSorter.cpp
@@ -324,7 +324,7 @@ void CParallelDataSorter::PrepareSendBuffers(std::vector<unsigned long>& globalI
324
/*--- Allocate the data buffer to hold the sorted data. We have to make it large enough
325
* to hold passivedoubles and su2doubles ---*/
326
unsigned short maxSize = max(sizeof(passivedouble), sizeof(su2double));
327
- dataBuffer = new char[VARS_PER_POINT*nPoint_Recv[size]*maxSize];
+ dataBuffer = new char[VARS_PER_POINT*nPoint_Recv[size]*maxSize] {};
328
329
/*--- doubleBuffer and passiveDouble buffer use the same memory allocated above using the dataBuffer. ---*/
330
0 commit comments