Commit 1f54d5bb by Peter Pettersson

util: suppress some uninitialized variable warnings

parent 51f0b021
...@@ -657,7 +657,7 @@ static bool has_at(const char *str) ...@@ -657,7 +657,7 @@ static bool has_at(const char *str)
int git_net_url_parse_scp(git_net_url *url, const char *given) int git_net_url_parse_scp(git_net_url *url, const char *given)
{ {
const char *default_port = default_port_for_scheme("ssh"); const char *default_port = default_port_for_scheme("ssh");
const char *c, *user, *host, *port, *path = NULL; const char *c, *user, *host, *port = NULL, *path = NULL;
size_t user_len = 0, host_len = 0, port_len = 0; size_t user_len = 0, host_len = 0, port_len = 0;
unsigned short bracket = 0; unsigned short bracket = 0;
......
...@@ -125,7 +125,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches, ...@@ -125,7 +125,7 @@ int git_regexp_search(const git_regexp *r, const char *string, size_t nmatches,
if ((data = pcre2_match_data_create(nmatches, NULL)) == NULL) { if ((data = pcre2_match_data_create(nmatches, NULL)) == NULL) {
git_error_set_oom(); git_error_set_oom();
goto out; return -1;
} }
if ((error = pcre2_match(*r, (const unsigned char *) string, strlen(string), if ((error = pcre2_match(*r, (const unsigned char *) string, strlen(string),
......
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