[geany/geany] 6e9c12: TM: Don't call tm_tags_dedup() on a NULL array
Colomban Wendling
git-noreply at xxxxx
Thu Jun 23 21:41:31 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Thu, 23 Jun 2016 21:41:31 UTC
Commit: 6e9c126b3314769c2a769bf446f25b93375e4774
https://github.com/geany/geany/commit/6e9c126b3314769c2a769bf446f25b93375e4774
Log Message:
-----------
TM: Don't call tm_tags_dedup() on a NULL array
Modified Paths:
--------------
tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_workspace.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -1073,7 +1073,8 @@ tm_workspace_find_scope_members (TMSourceFile *source_file, const char *name,
g_ptr_array_free(tags, TRUE);
}
- tm_tags_dedup(member_tags, sort_attr, FALSE);
+ if (member_tags)
+ tm_tags_dedup(member_tags, sort_attr, FALSE);
return member_tags;
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list