From: "Väinö Järvelä" <v@pp.inet.fi>
To: git@vger.kernel.org
Cc: gitster@pobox.com, "Väinö Järvelä" <v@pp.inet.fi>
Subject: [PATCH] Fixed crash in fetching remote tags when there is not tags.
Date: Tue, 09 Oct 2007 11:51:08 +0300 [thread overview]
Message-ID: <1191919868-4963-2-git-send-email-v@pp.inet.fi> (raw)
In-Reply-To: <1191919868-4963-1-git-send-email-v@pp.inet.fi>
Signed-off-by: Väinö Järvelä <v@pp.inet.fi>
---
remote.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/remote.c b/remote.c
index e7d735b..5e92378 100644
--- a/remote.c
+++ b/remote.c
@@ -537,6 +537,8 @@ static int count_refspec_match(const char *pattern,
static void tail_link_ref(struct ref *ref, struct ref ***tail)
{
+ if (!ref) return;
+
**tail = ref;
while (ref->next)
ref = ref->next;
--
1.5.3.4.1156.g5407-dirty
next prev parent reply other threads:[~2007-10-09 9:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 8:51 [PATCH] Added a test for fetching remote tags when there is not tags Väinö Järvelä
2007-10-09 8:51 ` Väinö Järvelä [this message]
2007-10-09 10:52 ` [PATCH] Fixed crash in " Väinö Järvelä
2007-10-09 18:20 ` Alex Riesen
2007-10-10 5:10 ` Jeff King
2007-10-10 21:27 ` Alex Riesen
2007-10-10 21:33 ` Jeff King
2007-10-12 4:07 ` Shawn O. Pearce
2007-10-12 20:40 ` [PATCH] Fix a crash in ls-remote when refspec expands into nothing Alex Riesen
2007-10-14 21:26 ` Lars Hjemli
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=1191919868-4963-2-git-send-email-v@pp.inet.fi \
--to=v@pp.inet.fi \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).