summaryrefslogtreecommitdiff
path: root/src/glob/globfree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glob/globfree.c')
-rw-r--r--src/glob/globfree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glob/globfree.c b/src/glob/globfree.c
index f04708c4..228dcea8 100644
--- a/src/glob/globfree.c
+++ b/src/glob/globfree.c
@@ -1,13 +1,16 @@
+#include "sys/types.h"
#include <glob.h>
#include "stdlib.h"
void globfree(glob_t * pglob)
{
+ size_t i;
+
if (pglob == NULL) {
return;
}
- for (size_t i = 0; i < pglob->gl_pathc; i++) {
+ for (i = 0; i < pglob->gl_pathc; i++) {
if (pglob->gl_pathv[i] != NULL) {
free(pglob->gl_pathv[i]);
}