mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 05:25:03 +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;
|
||||
|
||||
if (!val) {
|
||||
geterr_set(GITERR_INVALID, "Malformed remote '%s' - missing URL", name);
|
||||
error = -1;
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user