X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/91153fd02e62f2eaca8e6c140baa4f2abf39c40e..1b4ef6783a71962f8b5da3a23f2830f0f0f55ea0:/ui-snapshot.c 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, "Bad object id: %s", hex); return 1; } - if (!lookup_commit_reference(oid.hash)) { + if (!lookup_commit_reference(&oid)) { cgit_print_error_page(400, "Bad request", "Not a commit reference: %s", hex); return 1;