Thread (1 message) 1 message, 1 author, 2018-02-28

Re: [PATCH v2] sha1_name: fix uninitialized memory errors

From: Junio C Hamano <hidden>
Date: 2018-02-28 21:07:01

Derrick Stolee [off-list ref] writes:
quoted
I do not think they are wrong, but aren't the latter two somewhat
redundant?  "num" is p->num_objects, and we call (first+1)th element
only after we see (first < num - 1), i.e. first+1 < num, and the
access to (first-1)th is done only when first > 0.  The first one,
i.e. when first points at where we _would_ find it if it existed,
can access "first" that could be p->num_objects, so the change there
makes sense, though.
Yes. But I'd rather keep the blocks consistent and use the return
value of nth_packed_object_oid() when possible.
Sure, I do not think anybody minds; I just wanted a sanity check.

Thansk.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help