From 65a9fa59dcb442a23a8e01cdd1ee86d03f0b6957 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 2 Jun 2011 19:42:24 +0200 Subject: Remove unnecessary typecast --- src/urlglob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/urlglob.c') 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) { -- cgit v1.2.3