vendor/libgit2/src/streams/socket.c in rugged-1.1.1 vs vendor/libgit2/src/streams/socket.c in rugged-1.2.0

- old
+ new

@@ -181,11 +181,13 @@ const char *host, const char *port) { git_socket_stream *st; - assert(out && host && port); + GIT_ASSERT_ARG(out); + GIT_ASSERT_ARG(host); + GIT_ASSERT_ARG(port); st = git__calloc(1, sizeof(git_socket_stream)); GIT_ERROR_CHECK_ALLOC(st); st->host = git__strdup(host); @@ -215,10 +217,12 @@ { int (*init)(git_stream **, const char *, const char *) = NULL; git_stream_registration custom = {0}; int error; - assert(out && host && port); + GIT_ASSERT_ARG(out); + GIT_ASSERT_ARG(host); + GIT_ASSERT_ARG(port); if ((error = git_stream_registry_lookup(&custom, GIT_STREAM_STANDARD)) == 0) init = custom.init; else if (error == GIT_ENOTFOUND) init = default_socket_stream_new;