Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-01-23 10:42:59 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-01-23 10:42:59 +0100
Fileseb06a3b8a8683c25c43ade541a888dee6c2a956d
goodwolf-27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb.tar
goodwolf-27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb.tar.gz
goodwolf-27ffda5b938c1f4b98f0eab881a0f6e560a0ddfb.zip
Parentb3f8033c7b8b99a4cb3774878938a16bd1eb1078 (diff)
badwolf.c: Use malloc() instead of calloc() for initialising the struct pointer
1 files changed, 1 insertions, 1 deletions
-rw-r--r--badwolf.c2
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);