Mercurial > vim
comparison src/ex_cmds.c @ 7009:286fd54c7ae3 v7.4.822
patch 7.4.822
Problem: More problems reported by coverity.
Solution: Avoid the warnings. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 19:14:00 +0200 |
parents | 58d9f967ae1a |
children | 272f04b41f51 |
comparison
equal
deleted
inserted
replaced
7008:7ce1f4e998bb | 7009:286fd54c7ae3 |
---|---|
6854 if (!got_int) | 6854 if (!got_int) |
6855 { | 6855 { |
6856 /* | 6856 /* |
6857 * Sort the tags. | 6857 * Sort the tags. |
6858 */ | 6858 */ |
6859 sort_strings((char_u **)ga.ga_data, ga.ga_len); | 6859 if (ga.ga_data != NULL) |
6860 sort_strings((char_u **)ga.ga_data, ga.ga_len); | |
6860 | 6861 |
6861 /* | 6862 /* |
6862 * Check for duplicates. | 6863 * Check for duplicates. |
6863 */ | 6864 */ |
6864 for (i = 1; i < ga.ga_len; ++i) | 6865 for (i = 1; i < ga.ga_len; ++i) |