From a2006c008740dfc6b4260d8848f80d76b192f75a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 26 Jul 2012 10:37:47 -0400 Subject: [PATCH] Move assignment outside tt_assert in ssl unit tests. Appeases coverity. --- test/regress_ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/regress_ssl.c b/test/regress_ssl.c index a2b7f05b..8e0087aa 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -108,7 +108,8 @@ getcert(void) name = X509_NAME_new(); tt_assert(name); - tt_assert(NID_undef != (nid = OBJ_txt2nid("commonName"))); + nid = OBJ_txt2nid("commonName"); + tt_assert(NID_undef != nid); tt_assert(0 != X509_NAME_add_entry_by_NID( name, nid, MBSTRING_ASC, (unsigned char*)"example.com", -1, -1, 0)); -- 2.40.0