diff options
author | Philip Kelley <phkelley@hotmail.com> | 2014-06-26 08:01:01 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2014-06-26 08:01:01 -0400 |
commit | 9c46409d38b36ba822b4ddf6e5a00256f07b116b (patch) | |
tree | 3232556ef88b9b63108b97c718db8618716e88ef | |
parent | 86cb34cb110c6a1ec6e1d1525418c70f2f617d6b (diff) | |
parent | f36d57b9bf71808ae3974753464bd93c59963048 (diff) | |
download | libgit2-9c46409d38b36ba822b4ddf6e5a00256f07b116b.tar.gz |
Merge pull request #2444 from libgit2/phkelley/flexarray
Fixes #2443 Zero size arrays are an extension
-rw-r--r-- | src/refs.h | 2 |
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); |