From a09872362c50803bc41e4bf3556b2ee7842ecd2a Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 6 Apr 2023 07:08:41 +0000 Subject: [PATCH] Check and assign on one line --- regress/lib/libcrypto/bn/bn_mod_exp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/regress/lib/libcrypto/bn/bn_mod_exp.c b/regress/lib/libcrypto/bn/bn_mod_exp.c index 6b323408c86..5988458ab97 100644 --- a/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/regress/lib/libcrypto/bn/bn_mod_exp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mod_exp.c,v 1.34 2023/03/29 10:36:14 tb Exp $ */ +/* $OpenBSD: bn_mod_exp.c,v 1.35 2023/04/06 07:08:41 tb Exp $ */ /* * Copyright (c) 2022,2023 Theo Buehler @@ -77,8 +77,7 @@ bn_print(const char *name, const BIGNUM *bn) size_t len; int pad = 0; - len = strlen(name); - if (len < 7) + if ((len = strlen(name)) < 7) pad = 6 - len; fprintf(stderr, "%s: %*s", name, pad, ""); -- 2.20.1