X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/41f9c4e2f66252c83c6524fa4a346839d4c454b2..a92678b5f119811bccaca9c31b779c5ceed95572:/ui-blob.c diff --git a/ui-blob.c b/ui-blob.c index c59fbcb..7aec0b1 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -80,7 +80,7 @@ void cgit_print_blob(const char *hex, char *path, const char *head) struct commit *commit; struct pathspec_item path_items = { .match = path, - .len = strlen(path) + .len = path ? strlen(path) : 0 }; struct pathspec paths = { .nr = 1,