Unidiff1 files changed, 6 insertions, 3 deletions
|
diff --git a/shared.c b/shared.c index c58a2ff..6b5cfc2 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -30,2 +30,3 @@ char *cgit_query_head = NULL; |
30 | char *cgit_query_sha1 = NULL; |
30 | char *cgit_query_sha1 = NULL; |
| |
31 | int cgit_query_ofs = 0; |
31 | |
32 | |
@@ -61,7 +62,7 @@ void cgit_querystring_cb(const char *name, const char *value) |
61 | { |
62 | { |
62 | if (!strcmp(name,"r")) |
63 | if (!strcmp(name,"r")) { |
63 | cgit_query_repo = xstrdup(value); |
64 | cgit_query_repo = xstrdup(value); |
64 | else if (!strcmp(name, "p")) |
65 | } else if (!strcmp(name, "p")) { |
65 | cgit_query_page = xstrdup(value); |
66 | cgit_query_page = xstrdup(value); |
66 | else if (!strcmp(name, "h")) { |
67 | } else if (!strcmp(name, "h")) { |
67 | cgit_query_head = xstrdup(value); |
68 | cgit_query_head = xstrdup(value); |
@@ -71,2 +72,4 @@ void cgit_querystring_cb(const char *name, const char *value) |
71 | cgit_query_has_sha1 = 1; |
72 | cgit_query_has_sha1 = 1; |
| |
73 | } else if (!strcmp(name, "ofs")) { |
| |
74 | cgit_query_ofs = atoi(value); |
72 | } |
75 | } |
|