[Github-comments] [geany] Avoid NULL dereference when typing a dot in a file without tags (#943)

Jiří Techet notifications at xxxxx
Mon Mar 7 15:32:06 UTC 2016


@b4n Ah, I assumed there's always a TMSourceFile available for any GeanyDocument (I assumed there would be a NONE type TMSourceFile for an untitled document). I just wanted to get rid of the -1 which correspons to LANG_AUTO that we shouldn't use. Using TM_PARSER_NONE is perfectly fine and logical in this case so your patch LGTM.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/943#issuecomment-193300266
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160307/ed06a4fe/attachment.html>


More information about the Github-comments mailing list