diff options
Diffstat (limited to 'libc/posix/glob.c')
-rw-r--r-- | libc/posix/glob.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/posix/glob.c b/libc/posix/glob.c index 464859a75..ae1b6f6e0 100644 --- a/libc/posix/glob.c +++ b/libc/posix/glob.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2002, 2003, 2004, 2005, 2006, 2007 +/* Copyright (C) 1991-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -1080,8 +1080,7 @@ globfree (pglob) { size_t i; for (i = 0; i < pglob->gl_pathc; ++i) - if (pglob->gl_pathv[pglob->gl_offs + i] != NULL) - free (pglob->gl_pathv[pglob->gl_offs + i]); + free (pglob->gl_pathv[pglob->gl_offs + i]); free (pglob->gl_pathv); pglob->gl_pathv = NULL; } |