nuttx-apps/testing/memstress
chenrun1 2413a2a4c8 testing/memstress:Initialize the pointer to avoid the pointer being unknown when the memory alloc fails
Summary:
  fix warning

In function 'memorystress_iter',
    inlined from 'memstress_main' at memorystress_main.c:475:10:
memorystress_main.c:289:10: error: 'ptr' may be used uninitialized [-Werror=maybe-uninitialized]
  289 |       if (ptr == NULL)
      |          ^
memorystress_main.c: In function 'memstress_main':
memorystress_main.c:248:20: note: 'ptr' was declared here
  248 |       FAR uint8_t *ptr;
      |                    ^~~

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-06 19:29:40 -03:00
..
CMakeLists.txt cmake:port testing applications to CMake build 2024-06-29 22:31:03 +08:00
Kconfig
Make.defs
Makefile
memorystress_main.c testing/memstress:Initialize the pointer to avoid the pointer being unknown when the memory alloc fails 2024-08-06 19:29:40 -03:00