diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2013-08-21 13:37:21 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2013-08-27 16:57:17 +0200 |
| commit | ece24ef7c4bb31eb2c715948bcf6dff6ed9d7dfc (patch) | |
| tree | 2508e9de178de9c5886871127666a6340493d997 /src/remote.c | |
| parent | 44bc0c6ac3b939d3dfc1102be77e82e00e919ae4 (diff) | |
| download | libgit2-ece24ef7c4bb31eb2c715948bcf6dff6ed9d7dfc.tar.gz | |
remote: Don't parse missing urls as empty strings
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c index 948c755bb..4bba1d57e 100644 --- a/src/remote.c +++ b/src/remote.c @@ -308,7 +308,7 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name) if ((error = get_optional_config(config, &buf, NULL, (void *)&val)) < 0) goto cleanup; - if (val) { + if (val && strlen(val) > 0) { remote->pushurl = git__strdup(val); GITERR_CHECK_ALLOC(remote->pushurl); } |
