diff --git a/shared/nm-glib-aux/nm-str-buf.h b/shared/nm-glib-aux/nm-str-buf.h index 4c015aa43c..564f91c4b5 100644 --- a/shared/nm-glib-aux/nm-str-buf.h +++ b/shared/nm-glib-aux/nm-str-buf.h @@ -16,7 +16,10 @@ typedef struct _NMStrBuf { /*const*/ gsize len; gsize _len; }; - gsize _allocated; + union { + /*const*/ gsize allocated; + gsize _allocated; + }; bool _do_bzero_mem; } NMStrBuf;