Signed-off-by: Maninder Singh <maninder...@samsung.com>
Signed-off-by: Akhilesh Kumar <akhiles...@samsung.com>
---
 pan/splitstr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pan/splitstr.c b/pan/splitstr.c
index fbcd697..39b4698 100644
--- a/pan/splitstr.c
+++ b/pan/splitstr.c
@@ -88,7 +88,7 @@ const char **splitstr(const char *str, const char *separator, 
int *argcount)
        /*
         * set aside an initial char ** array for string array.
         */
-       arg_array = (char **)malloc(sizeof(char *) * max_toks);
+       arg_array = malloc(sizeof(char *) * max_toks);
 
        if (arg_array == NULL) {
                if (argcount != NULL)
-- 
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to