chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/disorder
[disorder]
/
lib
/
vector.c
diff --git
a/lib/vector.c
b/lib/vector.c
index 65a84e024490b7c4ad3a613f072264eff95a1978..0d1dd4eb90493d6bc311ef7a73c99d98593e7443 100644
(file)
--- a/
lib/vector.c
+++ b/
lib/vector.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder.
/*
* This file is part of DisOrder.
- * Copyright (C) 2004, 2007
, 2008
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
*
* 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) {
/** @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);
}
xfree(vec[n]);
xfree(vec);
}