From 1bb9345fb5a40a01e4cd532f5dbf24af02f0356d Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Thu, 28 Nov 2024 13:36:20 +0100 Subject: [PATCH] Fix #465, Update assert to check the correct variable --- fsw/src/cf_cfdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsw/src/cf_cfdp.c b/fsw/src/cf_cfdp.c index 8bda16bf..d3d8595f 100644 --- a/fsw/src/cf_cfdp.c +++ b/fsw/src/cf_cfdp.c @@ -1394,7 +1394,7 @@ void CF_CFDP_ProcessPlaybackDirectory(CF_Channel_t *chan, CF_Playback_t *pb) } txn = CF_FindUnusedTransaction(chan); - CF_Assert(pt); /* should be impossible not to have one because there are limits on the number of uses of + CF_Assert(txn); /* should be impossible not to have one because there are limits on the number of uses of them */ /* the -1 below is to make room for the slash */ @@ -1902,4 +1902,4 @@ void CF_CFDP_MoveFile(const char *src, const char *dest_dir) { OS_remove(src); } -} \ No newline at end of file +}