OSDN Git Service

Fix lapsus in builtin-apply.c
authorPierre Habouzit <madcoder@debian.org>
Tue, 18 Sep 2007 10:12:58 +0000 (12:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Sep 2007 21:09:12 +0000 (14:09 -0700)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c

index 5ad3714..bd96977 100644 (file)
@@ -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++;