From 883bf1bc0d10f9814306f77abcd7e0556e886d09 Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Fri, 13 Mar 2015 18:33:54 -0400 Subject: [PATCH] Workaround vala array property bug on centos This should allow rules to save properly on centos keyring --- src/moonshot-keyring-store.vala | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/moonshot-keyring-store.vala b/src/moonshot-keyring-store.vala index 0c3f1b2..75e84b8 100644 --- a/src/moonshot-keyring-store.vala +++ b/src/moonshot-keyring-store.vala @@ -153,12 +153,14 @@ public class KeyringStore : Object, IIdentityCardStore { public void store_id_cards () { clear_keyring(); foreach (IdCard id_card in this.id_card_list) { - string[] rules_patterns = new string[id_card.rules.length]; - string[] rules_always_conf = new string[id_card.rules.length]; + /* workaround for Centos vala array property bug: use temp array */ + var rules = id_card.rules; + string[] rules_patterns = new string[rules.length]; + string[] rules_always_conf = new string[rules.length]; - for (int i=0; i