* [PATCH] Fix lapsus in builtin-apply.c
@ 2007-09-18 10:12 Pierre Habouzit
0 siblings, 0 replies; only message in thread
From: Pierre Habouzit @ 2007-09-18 10:12 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
---
I found this issue trying to refactor the "quote" module. It's
definitely worth to push this in maint.
builtin-apply.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-apply.c b/builtin-apply.c
index 05ce220..86d89a4 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -254,7 +254,7 @@ static char *find_name(const char *line, char *def, int p_value, int terminate)
if (name) {
char *cp = name;
while (p_value) {
- cp = strchr(name, '/');
+ cp = strchr(cp, '/');
if (!cp)
break;
cp++;
--
1.5.3.1
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-18 10:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 10:12 [PATCH] Fix lapsus in builtin-apply.c Pierre Habouzit
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).