Commit 03623b47 by Edward Thomson

futils: use GIT_ASSERT

parent bc54898f
...@@ -185,7 +185,8 @@ int git_futils_readbuffer_updated( ...@@ -185,7 +185,8 @@ int git_futils_readbuffer_updated(
git_buf buf = GIT_BUF_INIT; git_buf buf = GIT_BUF_INIT;
git_oid checksum_new; git_oid checksum_new;
assert(out && path && *path); GIT_ASSERT_ARG(out);
GIT_ASSERT_ARG(path && *path);
if (updated != NULL) if (updated != NULL)
*updated = 0; *updated = 0;
...@@ -493,7 +494,7 @@ int git_futils_mkdir( ...@@ -493,7 +494,7 @@ int git_futils_mkdir(
goto done; goto done;
} }
assert(len); GIT_ASSERT(len);
/* /*
* We've walked all the given path's parents and it's either relative * We've walked all the given path's parents and it's either relative
...@@ -1128,8 +1129,6 @@ int git_futils_filestamp_check( ...@@ -1128,8 +1129,6 @@ int git_futils_filestamp_check(
void git_futils_filestamp_set( void git_futils_filestamp_set(
git_futils_filestamp *target, const git_futils_filestamp *source) git_futils_filestamp *target, const git_futils_filestamp *source)
{ {
assert(target);
if (source) if (source)
memcpy(target, source, sizeof(*target)); memcpy(target, source, sizeof(*target));
else else
......
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