summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish')
-rw-r--r--fish/fish.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c
index 9316edaa..9215f4e8 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -1086,7 +1086,9 @@ is_true (const char *str)
static void
free_n_strings (char **str, size_t len)
{
- for (size_t i = 0; i < len; i++) {
+ size_t i;
+
+ for (i = 0; i < len; i++) {
free (str[i]);
}
free (str);