diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-06-02 00:47:51 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-06-02 00:47:51 +0200 |
commit | 7b5fe049d1680bafdf1d8106653bda3b0a33a9f4 (patch) | |
tree | 2cdaccb6759277441c60480fc1ddd6d93a8bfec4 | |
parent | fea400f87b05c87ac73d521ec492f18e04e1a986 (diff) | |
download | libgit2-7b5fe049d1680bafdf1d8106653bda3b0a33a9f4.tar.gz |
odb-pack: Do not declare variables mid-function
-rw-r--r-- | src/odb_pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index 3b7352d84..203bc13cc 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -959,7 +959,7 @@ static int pack_entry_find_offset( const uint32_t *level1_ofs = p->index_map.data; const unsigned char *index = p->index_map.data; unsigned hi, lo, stride; - int found = 0; + int pos, found = 0; *offset_out = 0; @@ -997,7 +997,7 @@ static int pack_entry_find_offset( #endif /* Use git.git lookup code */ - int pos = sha1_entry_pos(index, stride, 0, lo, hi, p->num_objects, short_oid->id); + pos = sha1_entry_pos(index, stride, 0, lo, hi, p->num_objects, short_oid->id); const unsigned char *current; if (pos >= 0) { |