From: Junio C Hamano Date: Wed, 22 Aug 2012 18:51:42 +0000 (-0700) Subject: Merge branch 'nd/index-errno' X-Git-Tag: v1.8.0-rc0~151 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d0ae7e2e71a6d8b9eb198ed0a5e1462013f7c65d;p=git.git Merge branch 'nd/index-errno' Assignments to errno before calling system functions that used to matter in the old code were left behind after the code structure changed sufficiently to make them useless. * nd/index-errno: read_index_from: remove bogus errno assignments --- d0ae7e2e71a6d8b9eb198ed0a5e1462013f7c65d diff --cc read-cache.c index 2f8159fb1,5a78d6b05..76513cdc8 --- a/read-cache.c +++ b/read-cache.c @@@ -1412,9 -1273,7 +1412,8 @@@ int read_index_from(struct index_state struct cache_header *hdr; void *mmap; size_t mmap_size; + struct strbuf previous_name_buf = STRBUF_INIT, *previous_name; - errno = EBUSY; if (istate->initialized) return istate->cache_nr;