summaryrefslogtreecommitdiffabout
path: root/parsing.c
Side-by-side diff
Diffstat (limited to 'parsing.c') (more/less context) (ignore whitespace changes)
-rw-r--r--parsing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parsing.c b/parsing.c
index 1013dad..332d61c 100644
--- a/parsing.c
+++ b/parsing.c
@@ -203,3 +203,3 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
void *data;
- char type[20];
+ enum object_type type;
unsigned long size;
@@ -208,4 +208,4 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
- data = read_sha1_file(tag->object.sha1, type, &size);
- if (!data || strcmp(type, tag_type)) {
+ data = read_sha1_file(tag->object.sha1, &type, &size);
+ if (!data || type != OBJ_TAG) {
free(data);