summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pobject.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pobject.c b/pobject.c
index 62a8a38..0e968dc 100644
--- a/pobject.c
+++ b/pobject.c
@@ -987,10 +987,7 @@ pem_CreateObject
char *ivstring = NULL;
count = pem_nobjs;
- if (count > 0)
- size = ((count / PEM_ITEM_CHUNK) + 1) * PEM_ITEM_CHUNK;
- else
- size = 0;
+ size = (count / PEM_ITEM_CHUNK) * PEM_ITEM_CHUNK;
/*
* only create token objects