Skip to contentSkip to conversation

pan/ltp-bump.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 4/7 pan/ltp-bump.c: remove unnecessary malloc type cast

---
 pan/ltp-bump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
pan/ltp-bump.c +1 -1
index 5966c2e..b6d676f 100644
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
 	while ((c = getopt(argc, argv, "a:s:12")) != -1) {
 		switch (c) {
 		case 'a':
-			active = (char *)malloc(strlen(optarg) + 1);
+			active = malloc(strlen(optarg) + 1);
 			strcpy(active, optarg);
 			break;
 		case 's':
Signature · 6 lines
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list