From: tb Date: Thu, 6 Apr 2023 07:08:41 +0000 (+0000) Subject: Check and assign on one line X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a09872362c50803bc41e4bf3556b2ee7842ecd2a;p=openbsd Check and assign on one line --- 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, "");