]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add assertion
authorwessels <>
Tue, 10 Feb 1998 03:23:49 +0000 (03:23 +0000)
committerwessels <>
Tue, 10 Feb 1998 03:23:49 +0000 (03:23 +0000)
src/store_swapout.cc

index 713047beceafa28bf62d369e65e555dbfb7b539b..0c237cb94170192c07103c01b6c942cf7918502b 100644 (file)
@@ -195,6 +195,7 @@ void
 storeSwapOutFileClose(StoreEntry * e)
 {
     MemObject *mem = e->mem_obj;
+    assert(mem != NULL);
     if (mem->swapout.fd > -1) {
        file_close(mem->swapout.fd);
        mem->swapout.fd = -1;