Message ID | 1424117308-2902-1-git-send-email-mike.holmes@linaro.org |
---|---|
State | Accepted |
Commit | bd0f5fd295ee7062d57658fc7f9e1fcfca7dd204 |
Headers | show |
Merged, Maxim. On 02/16/2015 11:08 PM, Mike Holmes wrote: > struct odp_init_t init_data was not fully initalized. > > Fixes https://bugs.linaro.org/show_bug.cgi?id=1206 > > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> > --- > v2 > Use memset to cover the expansion of the struct in future > > > test/validation/odp_init_log.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/test/validation/odp_init_log.c b/test/validation/odp_init_log.c > index 372d4f5..c072147 100644 > --- a/test/validation/odp_init_log.c > +++ b/test/validation/odp_init_log.c > @@ -17,6 +17,7 @@ static void test_odp_init_global_replace_log(void) > int status; > struct odp_init_t init_data; > > + memset(&init_data, 0, sizeof(init_data)); > init_data.log_fn = &odp_init_log; > > replacement_logging_used = 0;
diff --git a/test/validation/odp_init_log.c b/test/validation/odp_init_log.c index 372d4f5..c072147 100644 --- a/test/validation/odp_init_log.c +++ b/test/validation/odp_init_log.c @@ -17,6 +17,7 @@ static void test_odp_init_global_replace_log(void) int status; struct odp_init_t init_data; + memset(&init_data, 0, sizeof(init_data)); init_data.log_fn = &odp_init_log; replacement_logging_used = 0;
struct odp_init_t init_data was not fully initalized. Fixes https://bugs.linaro.org/show_bug.cgi?id=1206 Signed-off-by: Mike Holmes <mike.holmes@linaro.org> --- v2 Use memset to cover the expansion of the struct in future test/validation/odp_init_log.c | 1 + 1 file changed, 1 insertion(+)