GNOME Bugzilla – Bug 756735
(Multiple) flags allowed with value="0"
Last modified: 2018-05-24 18:18:11 UTC
Probably not a big deal, but: <flags id="ca.desrt.dconf-editor.DemoFlags"> <value value="0" nick="Red"/> <value value="0" nick="White"/> <value value="1" nick="Blue"/> </flags> is completely OK at compilation. “value="0"” shouldn’t be allowed.
It seems that this happens only for flags value 0 - we drop that value during parsing and never add it to the list of values, so we can't detect the duplicate. Value 0 is allowed to specify the common 'none of the above' case.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1096.