Re: [PATCH v2 1/2] git-compat-util: add a FREEZ() wrapper around free(ptr); ptr = NULL
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Jun 10, 2017, 06:55 UTC
- Message-ID
- <m2vao4jpql.fsf@linux-m68k.org>
- In-Reply-To
- <20170609222738.GF21733@aiede.mtv.corp.google.com>
On Jun 09 2017, Jonathan Nieder <jrnieder@gmail.com> wrote:
> That way side-effectful callers like FREEZ(func() ? a : b) would > work.
Except that you cannot take the address of a non-lvalue.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."