Merge pull request #2444 from libgit2/phkelley/flexarray Fixes #2443 Zero size arrays are an extension
diff --git a/src/refs.h b/src/refs.h
index f75a4bf..a46b219 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);