From 74ab1eb244ba4470ec968bd7dcd1f9bec182f202 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 26 Nov 2023 10:33:47 +0000 Subject: [PATCH] html: css: Minor code style fix --- content/handlers/html/css.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/handlers/html/css.c b/content/handlers/html/css.c index 69d54580c..cdb94942a 100644 --- a/content/handlers/html/css.c +++ b/content/handlers/html/css.c @@ -396,10 +396,10 @@ bool html_css_process_link(html_content *htmlc, dom_node *node) if (exc != DOM_NO_ERR || rel == NULL) return true; - if (strcasestr(dom_string_data(rel), "stylesheet") == 0) { + if (strcasestr(dom_string_data(rel), "stylesheet") == NULL) { dom_string_unref(rel); return true; - } else if (strcasestr(dom_string_data(rel), "alternate") != 0) { + } else if (strcasestr(dom_string_data(rel), "alternate") != NULL) { /* Ignore alternate stylesheets */ dom_string_unref(rel); return true;