From 93812aa7950342c809a9dcbd9d50379c050b51ac Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 30 Sep 2011 20:19:43 -0700 Subject: Clean up existing malloc calls Remove unnecessary casts from (void *) Ensure return value is checked. Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston --- scope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scope.c') diff --git a/scope.c b/scope.c index 6f9df76..dfe9f00 100644 --- a/scope.c +++ b/scope.c @@ -489,7 +489,7 @@ CMDBreak ( *minorname = ':'; /* restore string for error message */ return CMDSyntax; } - bp = (BP *) malloc (sizeof (BP)); + bp = malloc (sizeof (BP)); bp->number = ++breakPointNumber; bp->request = request; bp->minorop = minorop; -- cgit v1.2.1