summaryrefslogtreecommitdiffstats
path: root/webext-surf.c
diff options
context:
space:
mode:
authorGravatar Quentin Rameau 2019-02-19 05:33:04 +0100
committerGravatar Quentin Rameau 2020-11-01 16:59:11 +0100
commit8d5e2b3a40a86d463d666cbf61906cf22febde34 (patch)
treec2edf2220d3c05f5979281fced8a9726bd4f4a28 /webext-surf.c
parentMakefile: rework how webextensions are handled (diff)
Remove common
Diffstat (limited to '')
-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;