wrap res assignment in else statement

This commit is contained in:
Ruby Martin
2025-07-14 17:07:58 -06:00
parent 8f00fc2594
commit dc345553df

View File

@@ -1376,8 +1376,10 @@ void* wolfSSL_Realloc(void *ptr, size_t size, void* heap, int type)
WOLFSSL_MSG("Error IO memory was not large enough"); WOLFSSL_MSG("Error IO memory was not large enough");
res = NULL; /* return NULL in error case */ res = NULL; /* return NULL in error case */
} }
else {
res = pt->buffer; res = pt->buffer;
} }
}
else else
#endif #endif
{ {