about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-02-04 18:11:21 +0000
committerMarco Peereboom <marco@conformal.com>2011-02-04 18:11:21 +0000
commit40e312cce551b9a3372b819bcc4cbf44c60cf19f (patch)
tree09470eee3cde0fba55471fdb0e46b0a5f235b77b
parent0495524560147b41a2f24ca447bb246e82b18497 (diff)
downloadxombrero-40e312cce551b9a3372b819bcc4cbf44c60cf19f.tar.gz
fix silly crash, found by dhill
-rw-r--r--xxxterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 739eae8..3c7d5e7 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -6923,8 +6923,10 @@ soup_cookie_jar_add_cookie(SoupCookieJar *jar, SoupCookie *cookie)
 		    "soup_cookie_jar_add_cookie: reject %s\n",
 		    cookie->domain);
 		if (save_rejected_cookies) {
-			if ((r_cookie_f = fopen(rc_fname, "a+")) == NULL)
+			if ((r_cookie_f = fopen(rc_fname, "a+")) == NULL) {
 				show_oops_s("can't open reject cookie file");
+				return;
+			}
 			fseek(r_cookie_f, 0, SEEK_END);
 			fprintf(r_cookie_f, "%s%s\t%s\t%s\t%s\t%lu\t%s\t%s\n",
 			    cookie->http_only ? "#HttpOnly_" : "",