commit 805253d5155091691f7cf36e54134cc87b2ea91a from: Christian Weisgerber date: Mon Mar 07 20:19:35 2022 UTC fix level of indirection ok stsp commit - 3a12860c3cbeae377b90f5526d0b75ccdb01bfc4 commit + 805253d5155091691f7cf36e54134cc87b2ea91a blob - 2e29508e51eb4534e7588561c727f6b6cf352503 blob + 096f0320a2c1debb9a1de9ac9c0a8e2bbab704cd --- lib/dial.c +++ lib/dial.c @@ -90,7 +90,7 @@ got_dial_parse_uri(char **proto, char **host, char **p if (!p) { /* Try parsing Git's "scp" style URL syntax. */ *proto = strdup("ssh"); - if (proto == NULL) { + if (*proto == NULL) { err = got_error_from_errno("strdup"); goto done; } @@ -118,7 +118,7 @@ got_dial_parse_uri(char **proto, char **host, char **p p = q + 1; } else { *proto = strndup(uri, p - uri); - if (proto == NULL) { + if (*proto == NULL) { err = got_error_from_errno("strndup"); goto done; }