summaryrefslogtreecommitdiff
path: root/webext-surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2019-02-19 05:33:04 +0100
committerQuentin Rameau <quinq@fifth.space>2020-11-01 16:59:11 +0100
commit8d5e2b3a40a86d463d666cbf61906cf22febde34 (patch)
treec2edf2220d3c05f5979281fced8a9726bd4f4a28 /webext-surf.c
parent21fcbc004e16a9de46424fb21ad9c32270779a0d (diff)
Remove common
Diffstat (limited to 'webext-surf.c')
-rw-r--r--webext-surf.c6
1 files changed, 4 insertions, 2 deletions
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;