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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"