Deutsch   English   Français   Italiano  
<v5njuc$3iul8$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: Fixing a sample from K&R book using cake static analyser
Date: Sat, 29 Jun 2024 00:19:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <v5njuc$3iul8$1@dont-email.me>
References: <v53sl1$35qt7$1@dont-email.me> <v5nius$3ilq3$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 29 Jun 2024 02:19:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a2cc8132046870bc3bf66319a7891d10";
	logging-data="3766952"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ZL5hf5VCqJhnv/Hszk260"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:7uxY/hQJn4itBaOMyqyvuUqfygg=
Bytes: 1486

On Sat, 29 Jun 2024 00:02:36 -0000 (UTC), I wrote:

>             result = lookup(name);
>             if (result != NULL)
>               {
>                 char * const defn_temp = strdup(defn);
>                 if (defn_temp == NULL)
>                     break;

Maybe replace those last two lines with

                if (defn_temp == NULL)
                  {
                    result = NULL;
                    break;
                  } /*if*/