diff options
| author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-07-12 19:01:09 +0300 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-07-13 02:03:34 +0200 |
| commit | 046dfea343964bdac55b14864f2e002a07c39813 (patch) | |
| tree | 70690e61d8758cb170e807a0a766628b7ab0ffd0 /src/index.c | |
| parent | fad6607a5547245cea63d0ba7bf1c06fddbe651a (diff) | |
| download | libgit2-046dfea343964bdac55b14864f2e002a07c39813.tar.gz | |
vector: avoid double asserting
index_initialize() calls assert() for arguments on its own. No need to
call it twice.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c index 988328794..6f874d54e 100644 --- a/src/index.c +++ b/src/index.c @@ -178,7 +178,6 @@ static int index_initialize(git_index **index_out, git_repository *owner, const int git_index_open(git_index **index_out, const char *index_path) { - assert(index_out && index_path); return index_initialize(index_out, NULL, index_path); } @@ -187,8 +186,6 @@ int git_index_open(git_index **index_out, const char *index_path) */ int git_repository_index(git_index **index_out, git_repository *repo) { - assert(index_out && repo); - if (repo->is_bare) return git__throw(GIT_EBAREINDEX, "Failed to open index. Repository is bare"); |
