summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2014-06-26 07:48:09 -0400
committerPhilip Kelley <phkelley@hotmail.com>2014-06-26 07:48:09 -0400
commitf36d57b9bf71808ae3974753464bd93c59963048 (patch)
tree3232556ef88b9b63108b97c718db8618716e88ef
parent86cb34cb110c6a1ec6e1d1525418c70f2f617d6b (diff)
downloadlibgit2-phkelley/flexarray.tar.gz
Fixes #2443 Zero size arrays are an extensionphkelley/flexarray
-rw-r--r--src/refs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refs.h b/src/refs.h
index f75a4bf7e..a46b219b6 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -63,7 +63,7 @@ struct git_reference {
} target;
git_oid peel;
- char name[0];
+ char name[GIT_FLEX_ARRAY];
};
git_reference *git_reference__set_name(git_reference *ref, const char *name);