From 1fc713cc1f1d499ef5e37a149d8bf968e3b122c2 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 6 Apr 2023 07:08:41 +0000 Subject: Check and assign on one line --- src/regress/lib/libcrypto/bn/bn_mod_exp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index 6b323408c8..5988458ab9 100644 --- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/src/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, ""); -- cgit v1.2.3-55-g6feb