ashishmac7 d9f3866574 Fix: Check memory allocation before memset operation
- Moved the NULL check after memory allocation to occur before the memset call.
  This prevents potential undefined behavior if the allocation fails.
- Ensures safe memory handling and avoids crashes due to dereferencing NULL.

Signed-off-by: CMT-Ashish <ashish.macwan@comminent.com>
Signed-off-by: ashishmac7 <ashishmac777@gmail.com>
2025-04-14 22:10:42 +02:00
..
2024-11-27 11:06:37 +01:00