Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-07-26 14:26:12 +0400
committerVicent Marti <tanoku@gmail.com>2011-09-27 16:33:18 +0400
commitb183ffe77ee0f81d51019ed46cd10fa0a9a353ac (patch)
tree266b7d34953213211e8708ac1a5aed3addd74080 /src/tree-cache.h
parentb41713206b83bdf88522ae789b56630bb6e0a4bc (diff)
Make tree cache name a flex-array
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'src/tree-cache.h')
-rw-r--r--src/tree-cache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tree-cache.h b/src/tree-cache.h
index a9e6d2dc7..1a5d40613 100644
--- a/src/tree-cache.h
+++ b/src/tree-cache.h
@@ -12,14 +12,13 @@
#include "git2/oid.h"
struct git_tree_cache {
- char *name;
-
struct git_tree_cache *parent;
struct git_tree_cache **children;
size_t children_count;
ssize_t entries;
git_oid oid;
+ char name[GIT_FLEX_ARRAY];
};
typedef struct git_tree_cache git_tree_cache;