summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Lobanov <gaussblurinc@gmail.com>2021-05-19 18:50:29 +0300
committerDmitry Lobanov <gaussblurinc@gmail.com>2021-05-19 18:50:29 +0300
commitd6f57b9cfa4006c11ce17be74f3671cf42ea312e (patch)
tree5246cf6915c10217a4eb7de98ff90015d182ba91
parent49f9941df594136c606bbb9b110869967e0f8e30 (diff)
downloadlibgit2-d6f57b9cfa4006c11ce17be74f3671cf42ea312e.tar.gz
submodule: git submodule dup guard statement has been fixed.
-rw-r--r--src/submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c
index 0460f4751..b78bef2e4 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -1857,7 +1857,7 @@ static void submodule_release(git_submodule *sm)
git_submodule* git_submodule_dup(git_submodule *sm)
{
if (!sm)
- return;
+ return NULL;
GIT_REFCOUNT_INC(sm);
return sm;
}