Index | Thread | Search

From:
"Ted Unangst" <tedu@tedunangst.com>
Subject:
Re: watch(1): construct cmdstr in a less clever way
To:
"Florian Obser" <florian@openbsd.org>
Cc:
"tech" <tech@openbsd.org>
Date:
Tue, 20 May 2025 12:20:34 -0400

Download raw body.

Thread
On 2025-05-20, Florian Obser wrote:
> OK?

> +	if ((cmdstr = calloc(cmdlen + 1, sizeof(char))) == NULL)
> +		err(1, "calloc");

there's no need for calloc.