X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/cdabf44d4bf72678b402c0fd7dac394eb36513da..af21fb6be8e226ce86b47ed923ee124e739ca48c:/lib/vector.c diff --git a/lib/vector.c b/lib/vector.c index fa8f9e3..0d1dd4e 100644 --- a/lib/vector.c +++ b/lib/vector.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004, 2007-2009 Richard Kettlewell + * Copyright (C) 2004, 2007-2009, 2013 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,7 +40,8 @@ void dynstr_append_bytes(struct dynstr *v, const char *ptr, size_t n) { /** @brief Free a string list */ void free_strings(int nvec, char **vec) { - for(int n = 0; n < nvec; ++n) + int n; + for(n = 0; n < nvec; ++n) xfree(vec[n]); xfree(vec); }