Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
Commitfc8d34d7538fc8c3890f9af843bf2f78a320e465 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-07-05 08:15:32 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-07-05 08:15:32 +0200
Files2999fa2c0b5b5825e7b56cbe680f34052c63981f /badwolf.c
goodwolf-fc8d34d7538fc8c3890f9af843bf2f78a320e465.tar
goodwolf-fc8d34d7538fc8c3890f9af843bf2f78a320e465.tar.gz
goodwolf-fc8d34d7538fc8c3890f9af843bf2f78a320e465.zip
Parentf886434a448d0bf873f68dec6da4449b93591582 (diff)
badwolf.1: Add Alt-d to close tab
1 files changed, 2 insertions, 2 deletions
-rw-r--r--badwolf.c4
diff --git a/badwolf.c b/badwolf.c
index bcd7e98..641eaec 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -8,7 +8,7 @@
#include <glib/gprintf.h> /* g_fprintf() */
#include <gtk/gtk.h>
#include <locale.h> /* LC_* */
-#include <stdlib.h> /* realpath() */
+#include <stdlib.h> /* realpath(), malloc() */
#include <webkit2/webkit2.h>
const gchar *homepage = "https://hacktivis.me/projects/badwolf";
@@ -658,7 +658,7 @@ SearchEntryCb_stop__search(GtkSearchEntry *search, gpointer user_data)
struct Client *
new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web_view)
{
- struct Client *browser = g_try_malloc(sizeof(struct Client));
+ struct Client *browser = malloc(sizeof(struct Client));
target_url = ensure_uri_scheme(target_url, (related_web_view == NULL));
char *badwolf_l10n = NULL;