瀏覽代碼

Check for null data ptr

Adam Ierymenko 6 年之前
父節點
當前提交
523df47a65
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/OneService.cpp

+ 1 - 1
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.