From 27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Wed, 23 Jan 2019 10:42:59 +0100 Subject: badwolf.c: Use malloc() instead of calloc() for initialising the struct pointer --- badwolf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badwolf.c b/badwolf.c index 8426051..e6585c6 100644 --- a/badwolf.c +++ b/badwolf.c @@ -135,7 +135,7 @@ static gboolean javascriptCb_toggled(GtkButton *javascript, gpointer user_data) int main(int argc, char *argv[]) { - struct Client *browser = calloc(1, sizeof(struct Client)); + struct Client *browser = malloc(sizeof(struct Client)); char *target_url = "about:blank"; gtk_init(&argc, &argv); -- cgit v1.3.1-23-gd82d