diff options
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -39,6 +39,7 @@ char *cgit_query_head = NULL; | |||
39 | char *cgit_query_search = NULL; | 39 | char *cgit_query_search = NULL; |
40 | char *cgit_query_sha1 = NULL; | 40 | char *cgit_query_sha1 = NULL; |
41 | char *cgit_query_sha2 = NULL; | 41 | char *cgit_query_sha2 = NULL; |
42 | char *cgit_query_path = NULL; | ||
42 | int cgit_query_ofs = 0; | 43 | int cgit_query_ofs = 0; |
43 | 44 | ||
44 | int htmlfd = 0; | 45 | int htmlfd = 0; |
@@ -100,6 +101,8 @@ void cgit_querystring_cb(const char *name, const char *value) | |||
100 | cgit_query_has_sha1 = 1; | 101 | cgit_query_has_sha1 = 1; |
101 | } else if (!strcmp(name, "ofs")) { | 102 | } else if (!strcmp(name, "ofs")) { |
102 | cgit_query_ofs = atoi(value); | 103 | cgit_query_ofs = atoi(value); |
104 | } else if (!strcmp(name, "path")) { | ||
105 | cgit_query_path = xstrdup(value); | ||
103 | } | 106 | } |
104 | } | 107 | } |
105 | 108 | ||