Skip to contentSkip to conversation

Fix lapsus in builtin-apply.c

PATCH New Pierre Habouzit 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix lapsus in builtin-apply.c

---

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(-)
builtin-apply.c +1 -1
index 05ce220..86d89a4 100644
@@ -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++;
Signature · 1 line
1.5.3.1