commit - ccff619c1232894de361a4f436f9695a57d7f401
commit + 063253307314ac1b90e8cd14b32cd11f93d31177
blob - 25cd3fa766ecf4f0c281b4082a53fba930fa6c07
blob + 5d1a7898fc6d2054c70b36f3156ae2eb76c29e31
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
struct got_tree_object *tree = NULL;
struct repo_dir *repo_dir = t->repo_dir;
const char *name, *index_page_str, *folder;
- char *id_str = NULL, *escaped_name = NULL, *path = NULL;
+ char *escaped_name = NULL, *path = NULL;
int nentries, i, r;
TAILQ_INIT(&refs);
te = got_object_tree_get_entry(tree, i);
- error = got_object_id_str(&id_str, got_tree_entry_get_id(te));
- if (error)
- goto done;
-
mode = got_tree_entry_get_mode(te);
if (got_object_tree_entry_is_submodule(te))
modestr = "$";
if (r == -1)
goto done;
}
- free(id_str);
- id_str = NULL;
free(escaped_name);
escaped_name = NULL;
}
done:
free(escaped_name);
- free(id_str);
free(path);
got_ref_list_free(&refs);
if (commit)