summaryrefslogtreecommitdiffabout
path: root/shared.c
Side-by-side diff
Diffstat (limited to 'shared.c') (more/less context) (show whitespace changes)
-rw-r--r--shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index e4595fa..dd711a8 100644
--- a/shared.c
+++ b/shared.c
@@ -41,2 +41,3 @@ char *cgit_query_sha1 = NULL;
char *cgit_query_sha2 = NULL;
+char *cgit_query_path = NULL;
int cgit_query_ofs = 0;
@@ -102,2 +103,4 @@ void cgit_querystring_cb(const char *name, const char *value)
cgit_query_ofs = atoi(value);
+ } else if (!strcmp(name, "path")) {
+ cgit_query_path = xstrdup(value);
}