[PATCH 02/15] editor: Initalize editor struct with 0

Jan Arne Petersen jpetersen at openismus.com
Sun Nov 4 18:26:40 PST 2012


From: Jan Arne Petersen <jpetersen at openismus.com>

Signed-off-by: Jan Arne Petersen <jpetersen at openismus.com>
---
 clients/editor.c | 2 ++
 1 file changed, 2 insertions(+)

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 @@ 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");
-- 
1.7.11.7



More information about the wayland-devel mailing list