diff options
-rw-r--r-- | src/indexer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/indexer.c b/src/indexer.c index 0ab54f742..23556a3c2 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -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"); |