Re: [PATCH 1/4] wt-status: fix possible use of uninitialized variable
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 21, 2013, 19:58 UTC
- Message-ID
- <20130321195804.GI29311@google.com>
- In-Reply-To
- <7vip4ka5pb.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes: >> Jeff King wrote:
Show 9 quoted lines
>>> + default:
>>> + die("BUG: unhandled change_type %d in wt_status_print_change_data",
>>> + change_type);
>>
>> Micronit: s/unhandled/invalid/.
>
> I actually think "unhandled" is more correct for this one; we may
> add new change_type later in the caller, and we do not want to
> forget to add a new case arm that handles the new value.Ok. Makes sense.