strings.c: remove unused assignment

As reported by clang-scan, `length_modifier` is never read in any code path
following this branch. It is safe to remove.
This commit is contained in:
Jente Hidskes
2017-02-19 23:18:00 +01:00
committed by Sander Bosma
parent 192fd161f9
commit 1a81ec6d88

View File

@@ -980,7 +980,6 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap,
const void *ptr_arg = NULL; const void *ptr_arg = NULL;
if (fmt_spec == 'p') { if (fmt_spec == 'p') {
length_modifier = '\0';
ptr_arg = tvs ? tv_ptr(tvs, &arg_idx) : va_arg(ap, void *); ptr_arg = tvs ? tv_ptr(tvs, &arg_idx) : va_arg(ap, void *);
if (ptr_arg) { if (ptr_arg) {
arg_sign = 1; arg_sign = 1;