avprobe: Zero the allocated avio buffer memory
Fixes valgrind warning "Conditional jump or move depends on uninitialised value(s)." from avio_flush().
This commit is contained in:
parent
5d0f85f1b2
commit
0e0538aefc
1 changed files with 1 additions and 1 deletions
|
|
@ -1039,7 +1039,7 @@ static int probe_buf_write(void *opaque, uint8_t *buf, int buf_size)
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
int ret;
|
||||
uint8_t *buffer = av_malloc(AVP_BUFFSIZE);
|
||||
uint8_t *buffer = av_mallocz(AVP_BUFFSIZE);
|
||||
|
||||
if (!buffer)
|
||||
exit(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue