bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] time: bad jump with null command in posix mode


From: Chet Ramey
Subject: Re: [PATCH] time: bad jump with null command in posix mode
Date: Thu, 20 Nov 2025 15:41:48 -0500
User-agent: Mozilla Thunderbird

On 11/19/25 5:24 PM, Grisha Levit wrote:
Identified by clang:

     execute_cmd.c:1506:7: warning: variable 'code' is used uninitialized
     whenever 'if' condition is true [-Wsometimes-uninitialized]
      1506 |   if (posixly_correct && nullcmd)
           |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
     execute_cmd.c:1591:7: note: uninitialized use occurs here
      1591 |   if (code)
           |       ^~~~

Thanks for the report.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]