shared: fix parsing aliases for flags in _nm_utils_enum_from_str_full()
Otherwise, the last alias overwrites previous values.
Fixes: b9fa0e0a19
This commit is contained in:
@@ -243,7 +243,7 @@ _nm_utils_enum_from_str_full (GType type,
|
||||
else {
|
||||
nick = _find_value_info (value_infos, s);
|
||||
if (nick)
|
||||
uvalue = (unsigned) nick->value;
|
||||
uvalue |= (unsigned) nick->value;
|
||||
else {
|
||||
ret = FALSE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user