src/sndfile.c : Fix a possible NULL dereference in sf_command().

This commit is contained in:
Erik de Castro Lopo 2007-04-09 12:44:55 +10:00
parent f3ceaa01c4
commit 1a42fe92b4

View File

@ -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 ;