From 88a49c1e414294ffdee0b25ba31d453ffea64d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 20 Sep 2018 14:58:27 +0200 Subject: [PATCH 27/83] * src/convert.c (convert_links): Fix code to avoid false positive by clang --- src/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convert.c b/src/convert.c index e6ca8fbb..b7f3d95c 100644 --- a/src/convert.c +++ b/src/convert.c @@ -303,7 +303,7 @@ convert_links (const char *file, struct urlpos *links) { case CO_CONVERT_TO_RELATIVE: /* Convert absolute URL to relative. */ - { + if (link->local_name) { char *newname = construct_relative (file, link->local_name); char *quoted_newname = local_quote_string (newname, link->link_css_p); -- 2.19.1