Commit 428f1acf by Dmitry Lobanov

submodule: git submodule dup out and source parameters have become mandatory.

parent 11452ca1
......@@ -227,7 +227,7 @@ GIT_EXTERN(int) git_submodule_lookup(
* Create an in-memory copy of a submodule. The copy must be explicitly
* free'd or it will leak.
*
* @param out Pointer to store the copy of the submodule. Cannot be NULL.
* @param out Pointer to store the copy of the submodule.
* @param source Original submodule to copy.
*/
GIT_EXTERN(int) git_submodule_dup(git_submodule **out, git_submodule *source);
......
......@@ -1857,9 +1857,9 @@ static void submodule_release(git_submodule *sm)
int git_submodule_dup(git_submodule **out, git_submodule *source)
{
GIT_ASSERT_ARG(out);
GIT_ASSERT_ARG(source);
if (source != NULL)
GIT_REFCOUNT_INC(source);
GIT_REFCOUNT_INC(source);
*out = source;
return 0;
......
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