Przeglądaj źródła

Check for null data ptr

Adam Ierymenko 6 lat temu
rodzic
commit
523df47a65
1 zmienionych plików z 1 dodań i 1 usunięć
  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.