Mercurial > vim
comparison src/ex_getln.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 | 1e621b31948b |
children | e45271250496 |
comparison
equal
deleted
inserted
replaced
7008:7ce1f4e998bb | 7009:286fd54c7ae3 |
---|---|
2310 indent = get_indent_str(p, 8, FALSE); | 2310 indent = get_indent_str(p, 8, FALSE); |
2311 indent += sw - indent % sw; | 2311 indent += sw - indent % sw; |
2312 add_indent: | 2312 add_indent: |
2313 while (get_indent_str(p, 8, FALSE) < indent) | 2313 while (get_indent_str(p, 8, FALSE) < indent) |
2314 { | 2314 { |
2315 ga_grow(&line_ga, 2); /* one more for the NUL */ | 2315 (void)ga_grow(&line_ga, 2); /* one more for the NUL */ |
2316 p = (char_u *)line_ga.ga_data; | 2316 p = (char_u *)line_ga.ga_data; |
2317 s = skipwhite(p); | 2317 s = skipwhite(p); |
2318 mch_memmove(s + 1, s, line_ga.ga_len - (s - p) + 1); | 2318 mch_memmove(s + 1, s, line_ga.ga_len - (s - p) + 1); |
2319 *s = ' '; | 2319 *s = ' '; |
2320 ++line_ga.ga_len; | 2320 ++line_ga.ga_len; |