diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-03-03 19:36:54 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-03 20:23:51 +0200 |
| commit | 0594e3efb75c806a53f2ef5693e55ee641788053 (patch) | |
| tree | dec5d847f653544602a4faac56ee1d9db96f122c /src/refs.c | |
| parent | e4029c5201ba86edd355266ea0a566995490dc1b (diff) | |
| download | libgit2-0594e3efb75c806a53f2ef5693e55ee641788053.tar.gz | |
Prevent _dirent_loose_load() from choking on empty folders
Diffstat (limited to 'src/refs.c')
| -rw-r--r-- | src/refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c index 02d9b6b3e..e8e87e7ae 100644 --- a/src/refs.c +++ b/src/refs.c @@ -537,7 +537,7 @@ static int _dirent_loose_load(void *data, char *full_path) int error; if (gitfo_isdir(full_path) == GIT_SUCCESS) - gitfo_dirent(full_path, GIT_PATH_MAX, _dirent_loose_load, repository); + return gitfo_dirent(full_path, GIT_PATH_MAX, _dirent_loose_load, repository); file_path = full_path + strlen(repository->path_repository); error = loose_lookup(&reference, repository, file_path, 1); |
