Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 07 Mar 2016 14:46:34 UTC Commit: 6818ba6baf8bef4afe3b88b36b9eb2b5a8c2fcc9 https://github.com/geany/geany/commit/6818ba6baf8bef4afe3b88b36b9eb2b5a8c2fc...
Log Message: ----------- Avoid NULL dereference when typing a dot in a file without tags
Modified Paths: -------------- tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_workspace.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -1053,7 +1053,7 @@ GPtrArray * tm_workspace_find_scope_members (TMSourceFile *source_file, const char *name, gboolean function, gboolean member, const gchar *current_scope, gboolean search_namespace) { - TMParserType lang = source_file->lang; + TMParserType lang = source_file ? source_file->lang : TM_PARSER_NONE; GPtrArray *tags, *member_tags = NULL; TMTagType function_types = tm_tag_function_t | tm_tag_method_t | tm_tag_macro_with_arg_t | tm_tag_prototype_t;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).