wrong operand to sizeof

This commit is contained in:
Mathieu Rene 2012-06-20 12:30:37 -04:00
parent 166249b0b9
commit 43ffafcb4b

View File

@ -169,7 +169,7 @@ static void stop_chan_io_dump(ftdm_io_dump_t *dump)
return; return;
} }
ftdm_safe_free(dump->buffer); ftdm_safe_free(dump->buffer);
memset(dump, 0, sizeof(dump)); memset(dump, 0, sizeof(*dump));
} }
static ftdm_status_t start_chan_io_dump(ftdm_channel_t *chan, ftdm_io_dump_t *dump, ftdm_size_t size) static ftdm_status_t start_chan_io_dump(ftdm_channel_t *chan, ftdm_io_dump_t *dump, ftdm_size_t size)