Fix calling parse_pathspec with no paths nor PATHSPEC_PREFER_* flags
[gitweb.git] / line-log.c
index 843a334bf06464f08ceb1a6d68d1599db2a1f1f2..b29f981cc778f138bf5f1760391345b1ce221ee3 100644 (file)
@@ -747,7 +747,8 @@ void line_log_init(struct rev_info *rev, const char *prefix, struct string_list
                        r = r->next;
                }
                paths[count] = NULL;
-               parse_pathspec(&rev->diffopt.pathspec, 0, 0, "", paths);
+               parse_pathspec(&rev->diffopt.pathspec, 0,
+                              PATHSPEC_PREFER_FULL, "", paths);
                free(paths);
        }
 }