From 34af5c2465d962f4b00562a31bece4fc2f9d730e Mon Sep 17 00:00:00 2001 From: Richard Quirk Date: Sat, 25 Jul 2015 14:49:57 +0200 Subject: use pclose for pipe --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 605fc78..0b13a99 100644 --- a/file.c +++ b/file.c @@ -8540,7 +8540,7 @@ lessopen_stream(char *path) } c = getc(fp); if (c == EOF) { - fclose(fp); + pclose(fp); return NULL; } ungetc(c, fp); -- cgit v1.2.3 From 1970c42320d16c2791613e41e00775452dfb9aab Mon Sep 17 00:00:00 2001 From: Richard Quirk Date: Sat, 25 Jul 2015 14:50:04 +0200 Subject: Initialise hidden_input to NULL This prevents a possible use of garbage value on line 3017. --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 0b13a99..df865a0 100644 --- a/file.c +++ b/file.c @@ -2713,7 +2713,7 @@ flushline(struct html_feed_environ *h_env, struct readbuffer *obuf, int indent, Str line = obuf->line, pass = NULL; char *hidden_anchor = NULL, *hidden_img = NULL, *hidden_bold = NULL, *hidden_under = NULL, *hidden_italic = NULL, *hidden_strike = NULL, - *hidden_ins = NULL, *hidden_input, *hidden = NULL; + *hidden_ins = NULL, *hidden_input = NULL, *hidden = NULL; #ifdef DEBUG if (w3m_debug) { -- cgit v1.2.3