[Bug 201594] usr/src/usr.sbin/pmcstudy/pmcstudy.c:2047: pointless memset ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 15 16:35:43 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201594
Bug ID: 201594
Summary: usr/src/usr.sbin/pmcstudy/pmcstudy.c:2047: pointless
memset ?
Product: Base System
Version: 10.2-BETA1
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
usr/src/usr.sbin/pmcstudy/pmcstudy.c:2047]: (warning) memset() called to fill 0
bytes of 'more'.
more = malloc(sz);
if (more == NULL) {
printf("No memory3 allocation fails at startup?\n");
exit(-1);
}
memset(more, sz, 0);
Suggest use calloc ?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list