diff options
author | Marco Peereboom <marco@conformal.com> | 2011-02-04 18:11:21 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-02-04 18:11:21 +0000 |
commit | 40e312cce551b9a3372b819bcc4cbf44c60cf19f (patch) | |
tree | 09470eee3cde0fba55471fdb0e46b0a5f235b77b | |
parent | 0495524560147b41a2f24ca447bb246e82b18497 (diff) | |
download | xombrero-40e312cce551b9a3372b819bcc4cbf44c60cf19f.tar.gz |
fix silly crash, found by dhill
-rw-r--r-- | xxxterm.c | 4 |
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_" : "", |