Skip to content

Commit 14c4767

Browse files
committed
warning fix
1 parent 7475448 commit 14c4767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

img/codec_jxl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ open_load( PImgCodec instance, PImgLoadFileInstance fi)
152152

153153
pos = req_tell(fi->req);
154154
if ( req_read(fi->req, SIGSIZE, buf) != SIGSIZE )
155-
return false;
155+
return NULL;
156156

157157
switch ( JxlSignatureCheck( buf, SIGSIZE )) {
158158
case JXL_SIG_CODESTREAM:
159159
case JXL_SIG_CONTAINER:
160160
break;
161161
default:
162-
return false;
162+
return NULL;
163163
}
164164

165165
fi-> stop = true;

0 commit comments

Comments
 (0)