[Github-comments] [geany/geany-plugins] pairtaghighlighter: Fix crash if the tag name is missing (#447)
Matthew Brush
notifications at xxxxx
Thu Jun 16 06:09:53 UTC 2016
> @@ -233,7 +235,7 @@ static void findMatchingOpeningTag(ScintillaObject *sci, gchar *tagName, gint op
> gchar *matchingTagName = get_tag_name(sci, matchingOpeningBracket,
> matchingClosingBracket,
> isMatchingTagOpening);
> - if(strcmp(tagName, matchingTagName) == 0)
> + if(matchingTagName && strcmp(tagName, matchingTagName) == 0)
Or it could use `g_strcmp0()`.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/447/files/5b461b3bdcf2c380e5f323e287be4ebd32f07059#r67291652
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160615/7cd7edc2/attachment.html>
More information about the Github-comments
mailing list