Lines Matching refs:NULL

122         NULL,           /* Security attributes */  in ZFILE_Open()
125 NULL); in ZFILE_Open()
223 if (((zip = calloc(1, sizeof(jzfile))) != NULL) && in allocZip()
224 ((zip->name = strdup(name)) != NULL) && in allocZip()
225 ((zip->lock = MCREATE()) != NULL)) { in allocZip()
230 if (zip != NULL) { in allocZip()
234 return NULL; in allocZip()
245 if (zip->lock != NULL) MDESTROY(zip->lock); in freeZip()
251 if (zip->maddr != NULL) in freeZip()
258 if (zip->comment != NULL) in freeZip()
333 if (zip->comment == NULL) { in findEND()
339 zip->comment = NULL; in findEND()
459 if (zip->metanames == NULL) return -1; in growMetaNames()
461 zip->metanames[i] = NULL; in growMetaNames()
475 if (zip->metanames == NULL) { in addMetaName()
478 if (zip->metanames == NULL) return -1; in addMetaName()
487 if (zip->metanames[i] == NULL) return -1; in addMetaName()
507 zip->metanames = NULL; in freeMetaNames()
515 free(zip->entries); zip->entries = NULL; in freeCEN()
516 free(zip->table); zip->table = NULL; in freeCEN()
551 unsigned char *cenbuf = NULL; in readCEN()
564 zip->msg = NULL; in readCEN()
631 zip->maddr = (mappedAddr == (void*) MAP_FAILED) ? NULL : in readCEN()
634 if (zip->maddr == NULL) { in readCEN()
643 if ((cenbuf = malloc((size_t) cenlen)) == NULL || in readCEN()
668 if ((entries == NULL && total != 0) || table == NULL) goto Catch; in readCEN()
772 jzfile *zip = NULL; in ZIP_Open_Generic()
776 *pmsg = NULL; in ZIP_Open_Generic()
781 if (zip == NULL && *pmsg == NULL) { in ZIP_Open_Generic()
802 return NULL; in ZIP_Get_From_Cache()
807 *pmsg = NULL; in ZIP_Get_From_Cache()
814 return NULL; in ZIP_Get_From_Cache()
821 for (zip = zfiles; zip != NULL; zip = zip->next) { in ZIP_Get_From_Cache()
855 if ((zip = allocZip(name)) == NULL) { in ZIP_Put_In_Cache0()
856 return NULL; in ZIP_Put_In_Cache0()
869 return NULL; in ZIP_Put_In_Cache0()
895 return NULL; in ZIP_Put_In_Cache0()
903 if (zip->msg != NULL) in ZIP_Put_In_Cache0()
907 return NULL; in ZIP_Put_In_Cache0()
927 if (file == NULL && pmsg != NULL && *pmsg != NULL) { in ZIP_Open()
977 if ((cen = malloc(bufsize)) == NULL) goto Catch; in readCENHeader()
981 if ((cen = realloc(cen, censize)) == NULL) goto Catch; in readCENHeader()
987 return NULL; in readCENHeader()
995 if (cache->data != NULL in sequentialAccessReadCENHeader()
1005 if ((cen = readCENHeader(zip, cenpos, CENCACHE_PAGESIZE)) == NULL) in sequentialAccessReadCENHeader()
1006 return NULL; in sequentialAccessReadCENHeader()
1030 if ((ze = (jzentry *) malloc(sizeof(jzentry))) == NULL) return NULL; in newEntry()
1031 ze->name = NULL; in newEntry()
1032 ze->extra = NULL; in newEntry()
1033 ze->comment = NULL; in newEntry()
1045 if (cen == NULL) goto Catch; in newEntry()
1059 if ((ze->name = malloc(nlen + 1)) == NULL) goto Catch; in newEntry()
1067 if ((ze->extra = malloc(elen + 2)) == NULL) goto Catch; in newEntry()
1109 if ((ze->comment = malloc(clen + 1)) == NULL) goto Catch; in newEntry()
1120 ze = NULL; in newEntry()
1126 if (cen != NULL && accessHint == ACCESS_RANDOM) free(cen); in newEntry()
1144 if (last != NULL) { in ZIP_FreeEntry()
1363 zip->msg = NULL; in ZIP_Read()
1539 if ((msg == NULL) || (*msg == 0)) { in ZIP_ReadEntry()