summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-17 14:02:35 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-17 14:02:35 -0700
commit523df47a654efffd22168384d9c8b2e8b26aafb0 (patch)
tree44c5b519b8c5eaeab73c34fabdc3f8d40a93e804 /service
parentf66fac398297c6153fa223d49efac7f08930eb99 (diff)
downloadinfinitytier-523df47a654efffd22168384d9c8b2e8b26aafb0.tar.gz
infinitytier-523df47a654efffd22168384d9c8b2e8b26aafb0.zip
Check for null data ptr
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp2
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.