Use explit result for counters

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23665 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-08-25 02:31:16 +00:00
parent cf6451436b
commit 192506f0c2

View File

@@ -195,8 +195,8 @@ mem_addkey(hx509_context context,
return ENOMEM;
}
mem->keys = ptr;
mem->keys[i++] = _hx509_private_key_ref(key);
mem->keys[i++] = NULL;
mem->keys[i] = _hx509_private_key_ref(key);
mem->keys[i + 1] = NULL;
return 0;
}