mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8207233: Minor improvements of jdk C-coding
Reviewed-by: rriggs, prr
This commit is contained in:
parent
93364e9a43
commit
fc20a5d86b
7 changed files with 20 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue