mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-30 05:20:59 +00:00
src/sndfile.c : Fix a possible NULL dereference in sf_command().
This commit is contained in:
parent
f3ceaa01c4
commit
1a42fe92b4
@ -902,7 +902,7 @@ sf_command (SNDFILE *sndfile, int command, void *data, int datasize)
|
||||
|
||||
case SFC_GET_LOG_INFO :
|
||||
if (data == NULL)
|
||||
return (psf->error = SFE_BAD_CONTROL_CMD) ;
|
||||
return SFE_BAD_CONTROL_CMD ;
|
||||
LSF_SNPRINTF (data, datasize, "%s", psf->logbuffer) ;
|
||||
break ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user