jcs
/subtext
/amendments
/381
util: Remove unused variable
jcs made amendment 381 about 1 year ago
--- util.c Wed Mar 1 16:26:29 2023
+++ util.c Tue Mar 7 22:54:53 2023
@@ -156,8 +156,6 @@ xmalloczero(size_t size)
void *
xcalloc(size_t nmemb, size_t size)
{
- void *ptr;
-
if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) &&
nmemb > 0 && SIZE_MAX / nmemb < size)
panic("xcalloc(%lu, %lu) overflow", nmemb, size);