diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-17 14:02:35 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-17 14:02:35 -0700 |
commit | 523df47a654efffd22168384d9c8b2e8b26aafb0 (patch) | |
tree | 44c5b519b8c5eaeab73c34fabdc3f8d40a93e804 /service | |
parent | f66fac398297c6153fa223d49efac7f08930eb99 (diff) | |
download | infinitytier-523df47a654efffd22168384d9c8b2e8b26aafb0.tar.gz infinitytier-523df47a654efffd22168384d9c8b2e8b26aafb0.zip |
Check for null data ptr
Diffstat (limited to 'service')
-rw-r--r-- | service/OneService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index b3d6739a..566b4750 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -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. |