Commit ade3c9bb by Carlos Martín Nieto Committed by Vicent Marti

Assert a filename in indexer creation

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent 7284c105
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment