tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH 1/2] Add BSD-licensed gettext(1) implementation



On Sun, May 31, 2015 at 11:21:40PM -0700, William Orr wrote:
> +		default:
> +			usage(argv[0], EXIT_FAILURE);
> +			/* NOTREACHED */
> +			break;

No break after a dead call, it can give a warning otherwise.

> +		msgdomain = strdup(argv[0]);
> +		if (msgdomain == NULL)
> +			err(EXIT_FAILURE, "can't allocate memory");

estrdup.

Joerg


Home | Main Index | Thread Index | Old Index