File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -391,14 +391,14 @@ int git_status_list_new(
391391
392392size_t git_status_list_entrycount (git_status_list * status )
393393{
394- assert (status );
394+ GIT_ASSERT_ARG_WITH_RETVAL (status , 0 );
395395
396396 return status -> paired .length ;
397397}
398398
399399const git_status_entry * git_status_byindex (git_status_list * status , size_t i )
400400{
401- assert (status );
401+ GIT_ASSERT_ARG_WITH_RETVAL (status , NULL );
402402
403403 return git_vector_get (& status -> paired , i );
404404}
@@ -492,7 +492,9 @@ int git_status_file(
492492 struct status_file_info sfi = {0 };
493493 git_index * index ;
494494
495- assert (status_flags && repo && path );
495+ GIT_ASSERT_ARG (status_flags );
496+ GIT_ASSERT_ARG (repo );
497+ GIT_ASSERT_ARG (path );
496498
497499 if ((error = git_repository_index__weakptr (& index , repo )) < 0 )
498500 return error ;
@@ -558,7 +560,8 @@ int git_status_init_options(git_status_options *opts, unsigned int version)
558560int git_status_list_get_perfdata (
559561 git_diff_perfdata * out , const git_status_list * status )
560562{
561- assert (out );
563+ GIT_ASSERT_ARG (out );
564+
562565 GIT_ERROR_CHECK_VERSION (out , GIT_DIFF_PERFDATA_VERSION , "git_diff_perfdata" );
563566
564567 out -> stat_calls = 0 ;
You can’t perform that action at this time.
0 commit comments