Split out mailmap handling out of shortlog
[gitweb.git] / fast-import.c
index c4c8cb905e3bcdfb131af40da9f7e29ca86b4a01..b4cbcd90118c47d47e8940322c8ec2161b33a92a 100644 (file)
@@ -1199,6 +1199,8 @@ static int tree_content_set(
                n = slash1 - p;
        else
                n = strlen(p);
+       if (!n)
+               die("Empty path component found in input");
 
        for (i = 0; i < t->entry_count; i++) {
                e = t->entries[i];