From: Christian Couder <chriscool@tuxfamily.org>
To: Tordek <kedrot@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] http.c: use 'git_config_string' on configuration options.
Date: Sat, 19 Apr 2008 07:16:55 +0200 [thread overview]
Message-ID: <200804190716.55490.chriscool@tuxfamily.org> (raw)
In-Reply-To: <48089F6A.3040102@tordek.com.ar>
Le vendredi 18 avril 2008, Tordek a écrit :
> Signed-off-by: Guillermo O. Freschi <tordek@tordek.com.ar>
> ---
> http.c | 35 ++++++++++-------------------------
> 1 files changed, 10 insertions(+), 25 deletions(-)
>
> diff --git a/http.c b/http.c
> index 256a5f1..cadc1bf 100644
> --- a/http.c
> +++ b/http.c
> @@ -100,39 +100,27 @@ static int http_options(const char *var, const
> char *value)
> }
>
> if (!strcmp("http.sslcert", var)) {
> - if (ssl_cert == NULL) {
> - if (!value)
> - return config_error_nonbool(var);
> - ssl_cert = xstrdup(value);
> - }
> + if (ssl_cert == NULL)
> + return git_config_string(&ssl_cert, var, value);
> return 0;
> }
Did you check that there is no compile warnings resulting from this ?
Did you read the last sentences of http://git.or.cz/gitwiki/Janitor ?
By the way it seems that your patch has spaces instead of tabs everywhere.
Thanks,
Christian.
prev parent reply other threads:[~2008-04-19 5:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 13:17 [PATCH] http.c: use 'git_config_string' on configuration options Tordek
2008-04-19 5:16 ` Christian Couder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804190716.55490.chriscool@tuxfamily.org \
--to=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=kedrot@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).