summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>2012-11-05 10:42:10 -0800
committerJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>2012-11-05 10:42:10 -0800
commitf8baece754d24a6121d701e2bad1922c61cffe71 (patch)
treea6dd2ad46c8dfe68d2a6cbb0129b130a47ed85bf
parenta2a618948c38d381a741c5799b87f7ff62da8c65 (diff)
downloadlibgit2-f8baece754d24a6121d701e2bad1922c61cffe71.tar.gz
Set GITERR_INVALID when encountering a NULL remote URL
-rw-r--r--src/remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c
index 187e3953a..714e2f0a9 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -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;
}