git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: possible code error at run_command.c

From
Frank Li <lznuaa@gmail.com>
Date
Dec 21, 2009, 08:18 UTC
Message-ID
<1976ea660912210018y15acfe32o78841d5e0968f793@mail.gmail.com>
In-Reply-To
<4B2F2727.4060405@viscovery.net>
>
> Disable this check - it just takes away performance. :-)

Release version will disable this. Debug version enable this by default is just for find out code error.

Show 10 quoted lines
>
> (If you don't disable the check, then keep the required changes private.)
>
>> I prefer change it to
>> int failed_errno = errno;
>
> You don't need to initialize the variable at all because it is always
> initialized elsewhere before it is used. Perhaps MSVC is clever enough to
> see it?
>

Maybe some excute path miss initialized it. Otherwise compiler will not report warning.

Previous: Johannes SixtNext: Johannes Sixt
Message 6 of 11 in “possible code error at run_command.c”
  1. Frank LiDec 21, 2009
  2. Wincent ColaiutaDec 21, 2009
  3. Johannes SixtDec 21, 2009
  4. Frank LiDec 21, 2009
  5. Johannes SixtDec 21, 2009
  6. Frank LiDec 21, 2009
  7. Johannes SixtDec 21, 2009
  8. Erik Faye-LundDec 21, 2009
  9. Johannes SixtDec 21, 2009
  10. Erik Faye-LundDec 21, 2009
  11. Frank LiDec 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.