Skip to contentSkip to conversation

pan/reporter.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 5/7 pan/reporter.c: remove unnecessary malloc type cast

---
 pan/reporter.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
pan/reporter.c +1 -1
index 7b4a1e0..b9ec482 100644
@@ -100,7 +100,7 @@ static int scanner_reporter(SYM tags)
 	 * extract tag names from data
 	 */
 	ntags = NTAGS_START;
-	taglist = (char **)malloc(sizeof(char *) * ntags);
+	taglist = malloc(sizeof(char *) * ntags);
 	tagcount = 0;
 
 	tl = taglist;
Signature · 6 lines
1.7.9.5
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list