logo

badwolf

Unnamed repository; edit this file 'description' to name the repository.
commit: 27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb
parent: b3f8033c7b8b99a4cb3774878938a16bd1eb1078
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 23 Jan 2019 10:42:59 +0100

badwolf.c: Use malloc() instead of calloc() for initialising the struct pointer

Diffstat:

Mbadwolf.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);