]> asedeno.scripts.mit.edu Git - git.git/commitdiff
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 5ad371424b8019a97d1fb34045bb8e32134870aa..bd969778e063bab70eab14d6261d07edd926a115 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++;