diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-05-23 21:41:13 +0300 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-05-23 21:41:13 +0300 |
| commit | 8146fe7cb9b2c8161ff7d773548237682b1e7a98 (patch) | |
| tree | e7fd471f84be2eb0b3fa1358ecf10cb0aaeaf02f /src/index.c | |
| parent | d320c52d3be1f20b2bf15b17d6aadcf637ffe3a0 (diff) | |
| download | libgit2-8146fe7cb9b2c8161ff7d773548237682b1e7a98.tar.gz | |
index: Fix unused error messages
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index c738c2431..389780295 100644 --- a/src/index.c +++ b/src/index.c @@ -687,12 +687,12 @@ static int read_header(struct index_header *dest, const void *buffer) dest->signature = ntohl(source->signature); if (dest->signature != INDEX_HEADER_SIG) - return git__throw(GIT_EOBJCORRUPTED, "Failed to read header. Invalid signature"); + return GIT_EOBJCORRUPTED; dest->version = ntohl(source->version); if (dest->version != INDEX_VERSION_NUMBER_EXT && dest->version != INDEX_VERSION_NUMBER) - return git__throw(GIT_EOBJCORRUPTED, "Failed to read header. Invalid index version number"); + return GIT_EOBJCORRUPTED; dest->entry_count = ntohl(source->entry_count); return GIT_SUCCESS; |
