Skip to content

Commit

Permalink
EXODUS: Address codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed May 26, 2023
1 parent 0a56d09 commit f5471d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/seacas/libraries/exodus/src/ex_put_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5471d1

Please sign in to comment.