mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 03:06:13 +00:00
Assert a filename in indexer creation
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
7284c1059f
commit
ade3c9bb88
@ -102,6 +102,8 @@ int git_indexer_new(git_indexer **out, const char *packname)
|
||||
unsigned int namelen;
|
||||
int ret, error;
|
||||
|
||||
assert(out && packname);
|
||||
|
||||
if (git_path_root(packname) < 0)
|
||||
return git__throw(GIT_EINVALIDPATH, "Path is not absolute");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user