From 8d946079c5f51ce934ff5edf6333962c6061d8a5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 01 Feb 2010 16:55:37 +0000 Subject: ui-shared.c: fix segfault when repo is empty PATH_INFO="/$REPONAME/commit/?id=1" QUERY_STRING="id=1" ./cgit.cgi triggers segfault when the repository is empty and therefore ctx.qry.head is unset Signed-off-by: Florian Pritz Signed-off-by: Lars Hjemli --- (limited to 'cgit.c') -- cgit v0.9.0.2