Unidiff1 files changed, 10 insertions, 0 deletions
|
diff --git a/shared.c b/shared.c index 4574120..b576df8 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -83,8 +83,18 @@ void cgit_querystring_cb(const char *name, const char *value) |
83 | } else if (!strcmp(name, "id")) { |
83 | } else if (!strcmp(name, "id")) { |
84 | cgit_query_sha1 = xstrdup(value); |
84 | cgit_query_sha1 = xstrdup(value); |
85 | cgit_query_has_sha1 = 1; |
85 | cgit_query_has_sha1 = 1; |
86 | } else if (!strcmp(name, "ofs")) { |
86 | } else if (!strcmp(name, "ofs")) { |
87 | cgit_query_ofs = atoi(value); |
87 | cgit_query_ofs = atoi(value); |
88 | } |
88 | } |
89 | } |
89 | } |
90 | |
90 | |
| |
91 | void *cgit_free_commitinfo(struct commitinfo *info) |
| |
92 | { |
| |
93 | free(info->author); |
| |
94 | free(info->author_email); |
| |
95 | free(info->committer); |
| |
96 | free(info->committer_email); |
| |
97 | free(info->subject); |
| |
98 | free(info); |
| |
99 | return NULL; |
| |
100 | } |
|