comparison src/message.c @ 16054:78faa25f9698 v8.1.1032

patch 8.1.1032: warnings from clang static analyzer commit https://github.com/vim/vim/commit/2c519cf3bfe76083767ac94c674d2e161ed36587 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 21 21:45:34 2019 +0100 patch 8.1.1032: warnings from clang static analyzer Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Mar 2019 22:00:05 +0100
parents ca0a0b64809c
children c1c25e2523a6
comparison
equal deleted inserted replaced
16053:b6ce2c4d15a8 16054:78faa25f9698
4489 * widths */ 4489 * widths */
4490 case '%': 4490 case '%':
4491 case 'c': 4491 case 'c':
4492 case 's': 4492 case 's':
4493 case 'S': 4493 case 'S':
4494 length_modifier = '\0';
4495 str_arg_l = 1; 4494 str_arg_l = 1;
4496 switch (fmt_spec) 4495 switch (fmt_spec)
4497 { 4496 {
4498 case '%': 4497 case '%':
4499 str_arg = p; 4498 str_arg = p;
4870 /* precision is increased to force the 4869 /* precision is increased to force the
4871 * first character to be zero, except if a 4870 * first character to be zero, except if a
4872 * zero value is formatted with an 4871 * zero value is formatted with an
4873 * explicit precision of zero */ 4872 * explicit precision of zero */
4874 precision = num_of_digits + 1; 4873 precision = num_of_digits + 1;
4875 precision_specified = 1;
4876 } 4874 }
4877 } 4875 }
4878 /* zero padding to specified precision? */ 4876 /* zero padding to specified precision? */
4879 if (num_of_digits < precision) 4877 if (num_of_digits < precision)
4880 number_of_zeros_to_pad = precision - num_of_digits; 4878 number_of_zeros_to_pad = precision - num_of_digits;