diff options
Diffstat (limited to 'ui-snapshot.c')
-rw-r--r-- | ui-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index 9b8cddd..b2d95f7 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c | |||
@@ -116,7 +116,7 @@ static int make_snapshot(const struct cgit_snapshot_format *format, | |||
116 | "Bad object id: %s", hex); | 116 | "Bad object id: %s", hex); |
117 | return 1; | 117 | return 1; |
118 | } | 118 | } |
119 | if (!lookup_commit_reference(oid.hash)) { | 119 | if (!lookup_commit_reference(&oid)) { |
120 | cgit_print_error_page(400, "Bad request", | 120 | cgit_print_error_page(400, "Bad request", |
121 | "Not a commit reference: %s", hex); | 121 | "Not a commit reference: %s", hex); |
122 | return 1; | 122 | return 1; |