Skip to content

Commit

Permalink
Using the write check, not that it should really matter in our uses.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaGreen committed Jun 1, 2024
1 parent cc8b444 commit fe2c881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DHT/fxf.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ static int pushOntoFreeStore(void * const ptr, size_t const size) {
(size <= fxfMAXSIZE) &&
!(size & (min_alignment - 1U)));
cur_sh= &SizeData[SIZEDATA_SIZE_TO_INDEX(size)];
if ((size >= sizeof cur_sh->FreeHead) || !cur_sh->FreeCount) {
if ((size >= sizeof cur_sh->FreeHead) || !cur_sh->FreeHead) {
if (size >= sizeof cur_sh->FreeHead)
memcpy(ptr, &cur_sh->FreeHead, sizeof cur_sh->FreeHead);
cur_sh->FreeHead= ptr;
Expand Down

1 comment on commit fe2c881

@JoshuaGreen
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*err, the right check

Please sign in to comment.