Re: [PATCH] Fix an unitialized pointer in merge-recursive.c
- From
- Florian Weimer <fw@deneb.enyo.de>
- Date
- Aug 16, 2007, 13:16 UTC
- Message-ID
- <87ps1nwrfr.fsf@mid.deneb.enyo.de>
- In-Reply-To
- <7vodh7khuo.fsf@gitster.siamese.dyndns.org>
* Junio C. Hamano:
> Third option. Change the assignment from "mrtree = NULL" to > "mrtree = mtree". It is a standard idiom to work around stupid > gcc warnings.
Is it? It's also undefined according to the C standard. In other words, the compiler may assume that this particular declaration is never reached.