projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove useless code
[openssl.git]
/
apps
/
engine.c
diff --git
a/apps/engine.c
b/apps/engine.c
index 3d70cac416d6a54ebbf1d240876adda5a3d21fc2..460ec60cb14c89dfc63e861e5d322d8ddc31003e 100644
(file)
--- 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)
{
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);
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';
}
**buf = '\0';
}
- if (**buf != '\0')
- l += 2; /* ", " */
-
if (strlen(*buf) + strlen(s) >= (unsigned int)*size) {
*size += step;
*buf = OPENSSL_realloc(*buf, *size);
if (strlen(*buf) + strlen(s) >= (unsigned int)*size) {
*size += step;
*buf = OPENSSL_realloc(*buf, *size);