forked from enlightenment/terminology
add some padding fields to be sure holes are initialized (hi valgrind!)
This commit is contained in:
parent
6648388c8f
commit
2b9c9a8351
|
@ -1056,7 +1056,7 @@ void
|
|||
termpty_cell_codepoint_att_fill(Termpty *ty, Eina_Unicode codepoint,
|
||||
Termatt att, Termcell *dst, int n)
|
||||
{
|
||||
Termcell local = { codepoint, att };
|
||||
Termcell local = { .codepoint = codepoint, .att = att };
|
||||
int i;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
|
|
|
@ -54,6 +54,8 @@ struct _Termatt
|
|||
unsigned short italic : 1;
|
||||
#elif defined(SUPPORT_DBLWIDTH)
|
||||
unsigned short dblwidth : 1;
|
||||
#else
|
||||
unsigned short bit_padding_0 : 1;
|
||||
#endif
|
||||
unsigned short underline : 1;
|
||||
unsigned short blink : 1; // don't intend to support this currently
|
||||
|
@ -72,6 +74,9 @@ struct _Termatt
|
|||
unsigned short fraktur : 1;
|
||||
#if defined(SUPPORT_80_132_COLUMNS)
|
||||
unsigned short is_80_132_mode_allowed : 1;
|
||||
unsigned short bit_padding : 14;
|
||||
#else
|
||||
unsigned short bit_padding : 15;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -156,6 +161,7 @@ struct _Termcell
|
|||
{
|
||||
Eina_Unicode codepoint;
|
||||
Termatt att;
|
||||
unsigned char padding[2];
|
||||
};
|
||||
|
||||
struct _Termsave
|
||||
|
|
Loading…
Reference in New Issue