From 8d5e2b3a40a86d463d666cbf61906cf22febde34 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Tue, 19 Feb 2019 05:33:04 +0100 Subject: Remove common --- webext-surf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'webext-surf.c') diff --git a/webext-surf.c b/webext-surf.c index ec9a235..ec471d1 100644 --- a/webext-surf.c +++ b/webext-surf.c @@ -26,8 +26,10 @@ newpage(WebKitWebPage *page) { Page *p; - if (!(p = calloc(1, sizeof(Page)))) - die("Cannot malloc!\n"); + if (!(p = calloc(1, sizeof(Page)))) { + fputs("Cannot malloc!\n", stderr); + exit(1); + } p->next = pages; pages = p; -- cgit v1.2.3