diff options
-rw-r--r-- | ui-blob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ void cgit_print_blob(const char *hex, char *path, const char *head) | |||
80 | struct commit *commit; | 80 | struct commit *commit; |
81 | struct pathspec_item path_items = { | 81 | struct pathspec_item path_items = { |
82 | .match = path, | 82 | .match = path, |
83 | .len = strlen(path) | 83 | .len = path ? strlen(path) : 0 |
84 | }; | 84 | }; |
85 | struct pathspec paths = { | 85 | struct pathspec paths = { |
86 | .nr = 1, | 86 | .nr = 1, |