summaryrefslogtreecommitdiff
path: root/webext-surf.c
diff options
context:
space:
mode:
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;