aboutsummaryrefslogtreecommitdiff
path: root/src/urlglob.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-06-02 19:42:24 +0200
committerYang Tse <yangsita@gmail.com>2011-06-02 19:42:24 +0200
commit65a9fa59dcb442a23a8e01cdd1ee86d03f0b6957 (patch)
treee0a2556202bc5eb245283807cfc89dd9ddd04217 /src/urlglob.c
parent9eea43dce2442aa63065432738e3ce23046ba05a (diff)
Remove unnecessary typecast
Diffstat (limited to 'src/urlglob.c')
-rw-r--r--src/urlglob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index 457e32cd6..2bbadabb2 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -71,7 +71,7 @@ static GlobCode glob_set(URLGlob *glob, char *pattern,
pat->content.Set.size = 0;
pat->content.Set.ptr_s = 0;
/* FIXME: Here's a nasty zero size malloc */
- pat->content.Set.elements = (char**)malloc(0);
+ pat->content.Set.elements = malloc(0);
++glob->size;
while(!done) {