From f5471d162fb3f7a35ff896b94f765da9b0238af2 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Fri, 26 May 2023 11:42:34 -0600 Subject: [PATCH] EXODUS: Address codacy issues --- packages/seacas/libraries/exodus/src/ex_put_name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/seacas/libraries/exodus/src/ex_put_name.c b/packages/seacas/libraries/exodus/src/ex_put_name.c index 54c9674bae..9276f6ce8c 100644 --- a/packages/seacas/libraries/exodus/src/ex_put_name.c +++ b/packages/seacas/libraries/exodus/src/ex_put_name.c @@ -36,9 +36,9 @@ int ex__put_assembly_name(int exoid, ex_entity_type obj_type, ex_entity_id entit */ /* See if an assembly with this id has already been defined or exists on file... */ int entlst_id = 0; - int status = 0; char errmsg[MAX_ERR_LENGTH]; if (nc_inq_varid(exoid, VAR_ENTITY_ASSEMBLY(entity_id), &entlst_id) == NC_NOERR) { + int status; if ((status = nc_redef(exoid)) != NC_NOERR) { snprintf(errmsg, MAX_ERR_LENGTH, "ERROR: failed to put file id %d into define mode", exoid); ex_err_fn(exoid, __func__, errmsg, status);