X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyarray.c;h=f869802b83b80fcf549e8c2d685cee47be6a2acc;hb=2039724ebd70536ad567630725f6b75b7868e486;hp=8bade8ca193913330146c3dbe8d1332652692e9d;hpb=46ebdd20784c242ca96b949813d90167349177d9;p=onak.git
diff --git a/keyarray.c b/keyarray.c
index 8bade8c..f869802 100644
--- a/keyarray.c
+++ b/keyarray.c
@@ -13,8 +13,7 @@
* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see .
*/
#include
@@ -71,7 +70,7 @@ bool array_add(struct keyarray *array, struct openpgp_fingerprint *fp)
int curpos = 0;
found = false;
- if (array->keys != NULL && array->count > 0) {
+ if (array->size != 0 && array->count > 0) {
bottom = -1;
top = array->count - 1;
while ((top - bottom) > 1) {