Use [x]zalloc instead of [x]malloc + memset
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
diff --git a/clients/editor.c b/clients/editor.c
index d0b7fee..7d388a4 100644
--- a/clients/editor.c
+++ b/clients/editor.c
@@ -687,8 +687,7 @@
{
struct text_entry *entry;
- entry = xmalloc(sizeof *entry);
- memset(entry, 0, sizeof *entry);
+ entry = xzalloc(sizeof *entry);
entry->widget = widget_add_widget(editor->widget, entry);
entry->window = editor->window;