projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
c90f06e
57d84f8
)
Merge branch 'nd/index-errno'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 22 Aug 2012 18:51:42 +0000
(11:51 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 22 Aug 2012 18:51:42 +0000
(11:51 -0700)
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
1
2
read-cache.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
read-cache.c
index 2f8159fb165f853aafb5e0cee61f35aa854271ec,5a78d6b05fd87c4e2a96b294a51ba8659416c3aa..76513cdc8fbe417e189164a7e9aa1cd4646a3ac2
---
1
/
read-cache.c
---
2
/
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;