X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fengine.c;h=460ec60cb14c89dfc63e861e5d322d8ddc31003e;hp=3d70cac416d6a54ebbf1d240876adda5a3d21fc2;hb=b62a2f8a373d1889672599834acf95161f2883ce;hpb=a8bd9f90edcabf0550dca6771f890956b0434cbb diff --git a/apps/engine.c b/apps/engine.c index 3d70cac416..460ec60cb1 100644 --- a/apps/engine.c +++ b/apps/engine.c @@ -99,8 +99,6 @@ static void identity(char *ptr) static int append_buf(char **buf, const char *s, int *size, int step) { - int l = strlen(s); - if (*buf == NULL) { *size = step; *buf = OPENSSL_malloc(*size); @@ -109,9 +107,6 @@ static int append_buf(char **buf, const char *s, int *size, int step) **buf = '\0'; } - if (**buf != '\0') - l += 2; /* ", " */ - if (strlen(*buf) + strlen(s) >= (unsigned int)*size) { *size += step; *buf = OPENSSL_realloc(*buf, *size);