TM: Don't call tm_tags_dedup() on a NULL array

This commit is contained in:
Colomban Wendling 2016-06-23 23:41:31 +02:00
parent d6c98f5ae6
commit 6e9c126b33

View File

@ -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;
}