forked from external/yambar
particle: initialize 'deco' member to NULL
Fixes valgrind warnings about uninitialized variable. This happened for every particle that did *not* have a decoration.
This commit is contained in:
parent
1b50808da5
commit
f65a18b655
1 changed files with 1 additions and 0 deletions
|
@ -8,5 +8,6 @@ particle_common_new(int left_margin, int right_margin)
|
|||
p->parent = NULL;
|
||||
p->left_margin = left_margin;
|
||||
p->right_margin = right_margin;
|
||||
p->deco = NULL;
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue