wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Use simpler sizeof expressions

Open kojiws opened this issue 7 months ago • 0 comments

Description

The sizeof(*ptr) expressions are a bit confusing when ptr == NULL. So this PR replaces them with sizeof(TYPE) expression instead to make the meaning more clear.

Fixes zd#

Testing

./configure --enable-smallstack && make test

Checklist

  • [ ] added tests
  • [ ] updated/added doxygen
  • [ ] updated appropriate READMEs
  • [ ] Updated manual and documentation

kojiws avatar Jun 03 '25 04:06 kojiws