pan/splitstr.c: remove unnecessary malloc type cast
PATCH 2/7 pan/splitstr.c: remove unnecessary malloc type cast
Signed-off-by Maninder Singh <[email protected]>
Signed-off-by Akhilesh Kumar <[email protected]>
--- pan/splitstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
pan/splitstr.c +1 -1
@@ -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 )
Signature · 6 lines
1.7.9.5 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list