Commit 03c9cf61 authored by Rafaël Carré's avatar Rafaël Carré

stats: fix initialization on 32bits builds

using psz_string to initialize will leave the top 32bits uninitialized
parent 93bf2905
......@@ -452,7 +452,7 @@ static int CounterUpdate( vlc_object_t *p_handler,
{
counter_sample_t *p_new = (counter_sample_t*)malloc(
sizeof( counter_sample_t ) );
p_new->value.psz_string = NULL;
p_new->value.i_int = 0;
INSERT_ELEM( p_counter->pp_samples, p_counter->i_samples,
p_counter->i_samples, p_new );
......@@ -524,7 +524,7 @@ static int CounterUpdate( vlc_object_t *p_handler,
{
counter_sample_t *p_new = (counter_sample_t*)malloc(
sizeof( counter_sample_t ) );
p_new->value.psz_string = NULL;
p_new->value.i_int = 0;
INSERT_ELEM( p_counter->pp_samples, p_counter->i_samples,
p_counter->i_samples, p_new );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment