Skip to content

Commit 51fe9b0

Browse files
DDvOlevitte
authored andcommitted
fix ERR_add_error_vdata() for use with multiple args/calls
Reviewed-by: Shane Lontis <[email protected]> Reviewed-by: Richard Levitte <[email protected]> (Merged from openssl#9558)
1 parent 9a7846d commit 51fe9b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crypto/err/err.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ void ERR_add_error_vdata(int num, va_list args)
790790
}
791791
len = strlen(str);
792792

793-
for (len = 0; --num >= 0; ) {
793+
while (--num >= 0) {
794794
arg = va_arg(args, char *);
795795
if (arg == NULL)
796796
arg = "<NULL>";

0 commit comments

Comments
 (0)