8207233: Minor improvements of jdk C-coding

Reviewed-by: rriggs, prr
This commit is contained in:
Goetz Lindenmaier 2018-07-13 17:42:24 +02:00
parent 93364e9a43
commit fc20a5d86b
7 changed files with 20 additions and 12 deletions

View file

@ -739,13 +739,13 @@ ZIP_Open_Generic(const char *name, char **pmsg, int mode, jlong lastModified)
jzfile *zip = NULL;
/* Clear zip error message */
if (pmsg != 0) {
if (pmsg != NULL) {
*pmsg = NULL;
}
zip = ZIP_Get_From_Cache(name, pmsg, lastModified);
if (zip == NULL && *pmsg == NULL) {
if (zip == NULL && pmsg != NULL && *pmsg == NULL) {
ZFILE zfd = ZFILE_Open(name, mode);
zip = ZIP_Put_In_Cache(name, zfd, pmsg, lastModified);
}