aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-12 22:57:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-12 22:57:40 +0000
commitf1445d85a8ade62fec54ddad1099b9ab5802cd37 (patch)
treedf1e360af56c662e86a02b31084e71fadeeadf64 /src/main/extractor.c
parent6ee2ce25363acc1c2f567d3b05788d625a28b989 (diff)
downloadlibextractor-f1445d85a8ade62fec54ddad1099b9ab5802cd37.tar.gz
libextractor-f1445d85a8ade62fec54ddad1099b9ab5802cd37.zip
null malloc checks
Diffstat (limited to 'src/main/extractor.c')
-rw-r--r--src/main/extractor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index 51f9aa4..6e3c639 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -1249,7 +1249,7 @@ process_requests (struct EXTRACTOR_PluginList *plugin,
1249 1249
1250#ifndef WINDOWS 1250#ifndef WINDOWS
1251 if ( (-1 != (shmid = shm_open (fn, O_RDONLY, 0))) && 1251 if ( (-1 != (shmid = shm_open (fn, O_RDONLY, 0))) &&
1252 (((size_t)-1) != (size = lseek (shmid, 0, SEEK_END))) && 1252 (SIZE_MAX != (size = lseek (shmid, 0, SEEK_END))) &&
1253 (NULL != (ptr = mmap (NULL, size, PROT_READ, MAP_SHARED, shmid, 0))) && 1253 (NULL != (ptr = mmap (NULL, size, PROT_READ, MAP_SHARED, shmid, 0))) &&
1254 (ptr != (void*) -1) ) 1254 (ptr != (void*) -1) )
1255#else 1255#else