Skip to content

Commit

Permalink
Fix nasa#1928, checking against IsNewOffset only
Browse files Browse the repository at this point in the history
  • Loading branch information
zachar1a committed Oct 16, 2021
1 parent 9d4fcae commit 612a3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/es/fsw/src/cfe_es_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ int32 CFE_ES_RegisterCDSEx(CFE_ES_CDSHandle_t *HandlePtr, size_t UserBlockSize,
CFE_ES_CDSBlockRecordSetUsed(RegRecPtr, PendingBlockId);
}

if (Status == CFE_SUCCESS && (IsNewOffset || IsNewEntry))
if (Status == CFE_SUCCESS && IsNewOffset)
{
/* If we succeeded at creating a CDS, save updated registry in the CDS */
RegUpdateStatus = CFE_ES_UpdateCDSRegistry();
Expand Down

0 comments on commit 612a3d8

Please sign in to comment.