Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Li zeming <zeming@nfschina.com>
Cc: masahiroy@kernel.org, linux-kbuild@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] lxdialog: menubox: Add malloc allocation judgment
Date: Mon, 24 Oct 2022 15:11:19 +0700	[thread overview]
Message-ID: <Y1ZIp1ZAu0VzQ9Wf@debian.me> (raw)
In-Reply-To: <20221024055629.178198-1-zeming@nfschina.com>

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2022-10-24  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24  5:56 [PATCH] lxdialog: menubox: Add malloc allocation judgment Li zeming
2022-10-24  8:11 ` Bagas Sanjaya [this message]
2022-10-24  9:39   ` Li zeming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y1ZIp1ZAu0VzQ9Wf@debian.me \
    --to=bagasdotme@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=zeming@nfschina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox