mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 07:53:55 +00:00
Set GITERR_INVALID when encountering a NULL remote URL
This commit is contained in:
parent
a2a618948c
commit
f8baece754
@ -133,6 +133,7 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (!val) {
|
if (!val) {
|
||||||
|
geterr_set(GITERR_INVALID, "Malformed remote '%s' - missing URL", name);
|
||||||
error = -1;
|
error = -1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user