Check for null data ptr

This commit is contained in:
Adam Ierymenko 2019-06-17 14:02:35 -07:00
parent f66fac3982
commit 523df47a65

View File

@ -2449,7 +2449,7 @@ public:
return;
}
if (len >= 0) {
if ((len >= 0)&&(data)) {
// Check to see if we've already written this first. This reduces
// redundant writes and I/O overhead on most platforms and has
// little effect on others.