Skip to contentSkip to conversation

pan/splitstr.c: remove unnecessary malloc type cast

PATCH In review Maninder Singh 1 participant 1 message Jun 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 2/7 pan/splitstr.c: remove unnecessary malloc type cast

---
 pan/splitstr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
pan/splitstr.c +1 -1
index fbcd697..39b4698 100644
@@ -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