evas/fb: make sure FB_Mode attributes are zeroed.

We may read only geometry or timings, then make sure memory is fully
zeroed by doing a memset on the new array item.
This commit is contained in:
Gustavo Sverzut Barbieri 2014-03-06 11:15:05 -03:00
parent 78a9830a40
commit 3eddfa9366
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ fb_list_modes(unsigned int *num_return)
num++;
modes = realloc(modes, num * sizeof(FB_Mode));
memset(modes + (num - 1), 0, sizeof(FB_Mode));
modes[num - 1].width = atoi(f1);
modes[num - 1].height = atoi(f2);
if (f3[0])