libidav/pwdstore.c

changeset 102
64ded9f6a6c6
parent 101
7b3a3130be44
--- a/libidav/pwdstore.c	Mon Jan 06 22:22:55 2025 +0100
+++ b/libidav/pwdstore.c	Tue Feb 25 21:11:00 2025 +0100
@@ -137,7 +137,7 @@
     newp->encoffset = p->encoffset;
     newp->isdecrypted = p->isdecrypted;
     
-    CxIterator i = cxMapIterator(p->ids);
+    CxMapIterator i = cxMapIterator(p->ids);
     cx_foreach(CxMapEntry *, e, i) {
         PwdEntry *entry = e->value;
         pwdstore_put(newp, entry->id, entry->user, entry->password);
@@ -489,8 +489,8 @@
         write_index_entry(index, e);
     }
     
-    i = cxMapIteratorValues(p->ids);
-    cx_foreach(PwdEntry*, value, i) {
+    CxMapIterator mi = cxMapIteratorValues(p->ids);
+    cx_foreach(PwdEntry*, value, mi) {
         if(!value->id || !value->user || !value->password) {
             continue;
         }

mercurial