From: Miklos Vajna Date: Fri, 08 Feb 2008 14:26:40 GMT Subject: [PATCH] remote.c: guard config parser from value=NULL Message-ID: <20080208142640.GX25954@genesis.frugalware.org> In-Reply-To: <7v63x0lzhw.fsf@gitster.siamese.dyndns.org> Signed-off-by: Miklos Vajna --- remote.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/remote.c b/remote.c index 0e00680..4765815 100644 --- a/remote.c +++ b/remote.c @@ -276,7 +276,7 @@ static int handle_config(const char *key, const char *value) else error("more than one uploadpack given, using the first"); } else if (!strcmp(subkey, ".tagopt")) { - if (!strcmp(value, "--no-tags")) + if (value && !strcmp(value, "--no-tags")) remote->fetch_tags = -1; } else if (!strcmp(subkey, ".proxy")) { remote->http_proxy = xstrdup(value); -- 1.5.4