Set GITERR_INVALID when encountering a NULL remote URL

This commit is contained in:
Justin Spahr-Summers 2012-11-05 10:42:10 -08:00
parent a2a618948c
commit f8baece754

View File

@ -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;
}