Skip to content

Commit 174c525

Browse files
committed
HPCC-33475 Return nullptr instead of zero for pointer function reserveTruncate
Comment corrected Signed-off-by: Dave Streeter <[email protected]>
1 parent f977d3e commit 174c525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/jlib/jbuff.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void * MemoryBuffer::reserveTruncate(unsigned size)
354354
unsigned newLen = checkMemoryBufferOverflow(curLen, size);
355355
curLen += size;
356356
_reallocExact(newLen);
357-
truncate(); // can set buffer to null, or similar.
357+
truncate(); // can set buffer to null.
358358
if (buffer)
359359
return buffer + curLen - size;
360360
else

0 commit comments

Comments
 (0)