Use the right format modifier when comparing, and remove a couple of

unused variables.
This commit is contained in:
nicm
2019-06-15 06:33:48 +00:00
parent c95cd9ed5e
commit 03da0ced46
2 changed files with 3 additions and 4 deletions

View File

@ -1700,7 +1700,7 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
else
value = xstrdup("0");
} else if (strcmp(cmp->modifier, "m") == 0)
value = format_match(fm, left, right);
value = format_match(cmp, left, right);
free(right);
free(left);