Commit ef487d3
committed
Initialize DMA parameter struct before use
Call `dma_multi_data_para_struct_init(&dma_init_parameter)` before assigning fields in `gd32_dma_memcpy32.cpp`. This ensures all members start from known defaults and avoids undefined behavior from using an uninitialized DMA config struct.1 parent 9ef8523 commit ef487d3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments