commit | 25f6db51f031ff22a9a09ce6918747b64cac20b6 | [log] [tgz] |
---|---|---|
author | Jan Arne Petersen <jpetersen@openismus.com> | Mon Nov 05 03:26:40 2012 +0100 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Nov 08 14:26:30 2012 -0500 |
tree | 53ca17b3058309e34a930480a7a4001077a9c54b | |
parent | 6345faa39a29915a4146c988d7f095369bb80074 [diff] [blame] |
editor: Initalize editor struct with 0 Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
diff --git a/clients/editor.c b/clients/editor.c index cbc7218..42c1aec 100644 --- a/clients/editor.c +++ b/clients/editor.c
@@ -922,6 +922,8 @@ { 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");