mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 10:48:05 +02:00
editor: Initalize editor struct with 0
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
This commit is contained in:
parent
6345faa39a
commit
25f6db51f0
1 changed files with 2 additions and 0 deletions
|
|
@ -922,6 +922,8 @@ main(int argc, char *argv[])
|
|||
{
|
||||
struct editor editor;
|
||||
|
||||
memset(&editor, 0, sizeof editor);
|
||||
|
||||
editor.display = display_create(argc, argv);
|
||||
if (editor.display == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue