summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/surf.c b/surf.c
index 0ed831c..cac31d6 100644
--- a/surf.c
+++ b/surf.c
@@ -613,7 +613,7 @@ newwindow(Client *c, const Arg *arg) {
if(!plugin)
cmd[i++] = "-p";
if(!loadimage)
- cmd[i++] = "-l";
+ cmd[i++] = "-i";
if(showxid)
cmd[i++] = "-x";
cmd[i++] = "--";
@@ -707,7 +707,7 @@ setcookie(SoupCookie *c) {
SoupDate *e;
SoupCookieJar *j = soup_cookie_jar_text_new(cookiefile, FALSE);
c = soup_cookie_copy(c);
- if(c && c->expires == NULL) {
+ if(c->expires == NULL) {
e = soup_date_new_from_time_t(time(NULL) + sessiontime);
soup_cookie_set_expires(c, e);
}