Re: possible code error at run_command.c
- From
Frank Li <lznuaa@gmail.com>
- Date
- Dec 21, 2009, 07:29 UTC
- Message-ID
- <1976ea660912202329x42f6add3j9175867e8723a4bd@mail.gmail.com>
- In-Reply-To
- <4B2F214D.2020905@viscovery.net>
Show 8 quoted lines
> This is a commonly used idiom to avoid an (incorrect) compiler warning > about an uninitialized variable. > > Strictly speaking, I think that you are right by saying "means nothing" > because the use of the uninitialized variable invokes undefined behavior > (and for this reason, I dislike this construct), but in practice it will > not make a difference. >
This error is captured at MSVC environment by run time varible check. I prefer change it to int failed_errno = errno;