Move bundle specific stuff into bundle.[ch]
[gitweb.git] / builtin-apply.c
index 05ce2205f34a6e8fe4ce17ceed6ee2ae7730779a..86d89a4a7e9240a75e1500bba524acdcec7f14d2 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++;