Re: [PATCH] lxdialog: menubox: Add malloc allocation judgment

From: Bagas Sanjaya
Date: Mon Oct 24 2022 - 04:11:30 EST


On Mon, Oct 24, 2022 at 01:56:29PM +0800, Li zeming wrote:
> Add menu_item Only when the pointer judges that the pointer is valid
> can function code be executed.
>

The if block isn't "judgement", but conditional.

What if menu_item fails to be allocated?

--
An old man doll... just what I always wanted! - Clara

Attachment: signature.asc
Description: PGP signature