mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 03:15:46 +00:00
status.c: add missing check for error
dirent_cb() didn't check the return value of determine_status(). Signed-off-by: schu <schu-github@schulog.org>
This commit is contained in:
parent
ef37489041
commit
855f06606d
@ -411,7 +411,8 @@ static int dirent_cb(void *state, char *a)
|
|||||||
pa = ((cmpma >= 0) && (cmpai <= 0)) ? a_name : NULL;
|
pa = ((cmpma >= 0) && (cmpai <= 0)) ? a_name : NULL;
|
||||||
pi = ((cmpmi >= 0) && (cmpai >= 0)) ? i_name : NULL;
|
pi = ((cmpmi >= 0) && (cmpai >= 0)) ? i_name : NULL;
|
||||||
|
|
||||||
error = determine_status(st, pm != NULL, pi != NULL, pa != NULL, m, entry, a, status_path(pm, pi, pa), path_type);
|
if((error = determine_status(st, pm != NULL, pi != NULL, pa != NULL, m, entry, a, status_path(pm, pi, pa), path_type)) < GIT_SUCCESS)
|
||||||
|
return git__rethrow(error, "An error occured while determining the status of '%s'", a);
|
||||||
|
|
||||||
if (pa != NULL)
|
if (pa != NULL)
|
||||||
return GIT_SUCCESS;
|
return GIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user