summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2011-12-14 10:52:28 -0800
committerRussell Belfer <arrbee@arrbee.com>2011-12-14 14:31:06 -0800
commitd6ccedddd2f76d69b05ecfa45a93cde8682776e6 (patch)
treef6c62554779276716df3b4ba9bbc710ee296389e /src/status.c
parent52d552e901a59467edd53bca64af5cea777cdce7 (diff)
downloadlibgit2-d6ccedddd2f76d69b05ecfa45a93cde8682776e6.tar.gz
Check error on path manipulations.
This commit fixes #511.
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/status.c b/src/status.c
index 05e07be0a..64be6ce29 100644
--- a/src/status.c
+++ b/src/status.c
@@ -370,6 +370,7 @@ static int dirent_cb(void *state, git_buf *a)
if (git_tree_entry_type(m) == GIT_OBJ_TREE)
git_path_to_dir(&st->head_tree_relative_path);
+ error = git_buf_lasterror(&st->head_tree_relative_path);
if (error < GIT_SUCCESS)
return git__rethrow(error, "An error occured while determining the status of '%s'", a->ptr);