From 2d9d2494fc95de1c61f347a1a20297b8fa847fd3 Mon Sep 17 00:00:00 2001 From: David Crosby Date: Fri, 10 Jul 2015 00:02:12 -0600 Subject: Move fclose to fix dereference after null check (Coverity) --- w3mbookmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/w3mbookmark.c b/w3mbookmark.c index 4ffc630..a306f26 100644 --- a/w3mbookmark.c +++ b/w3mbookmark.c @@ -79,9 +79,9 @@ print_bookmark_panel(char *bmark, char *url, char *title, char *charset) } } printf("\n"); + fclose(f); } printf(bkmark_src2, html_quote(url), html_quote(title)); - fclose(f); } /* create new bookmark */ -- cgit v1.2.3