Re: [PATCH] wt-status: use separate variable for result of shorten_unambiguous_ref

2017-07-09 Thread Stefan Beller
On Sat, Jul 8, 2017 at 3:51 AM, René Scharfe wrote: > Store the pointer to the string allocated by shorten_unambiguous_ref in > a dedicated variable, short_base, and keep base unchanged. A non-const > variable is more appropriate for such an object. It avoids having to > cast

[PATCH] wt-status: use separate variable for result of shorten_unambiguous_ref

2017-07-08 Thread René Scharfe
Store the pointer to the string allocated by shorten_unambiguous_ref in a dedicated variable, short_base, and keep base unchanged. A non-const variable is more appropriate for such an object. It avoids having to cast const away on free and stops redefining the meaning of base, making the code