summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
authorRichard Jones <rjones@centos5x32.home.annexia.org>2009-09-14 20:14:47 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-09-14 20:16:52 +0100
commitacbcbfaf39592b0b9c1864740ff0b3baad053b2e (patch)
tree47717c833fc66a1fac16673ffc08748aa8ffdfad /fish
parent204e6da87d7887816ca71545e01ce1374afa4bb5 (diff)
downloadlibguestfs-acbcbfaf39592b0b9c1864740ff0b3baad053b2e.tar.gz
libguestfs-acbcbfaf39592b0b9c1864740ff0b3baad053b2e.tar.xz
libguestfs-acbcbfaf39592b0b9c1864740ff0b3baad053b2e.zip
Move decl out for C99 compliance.
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);