forked from enlightenment/efl
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:
parent
78a9830a40
commit
3eddfa9366
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue