Skip to content
Commit 557ad8e4 authored by Pisit Sawangvonganan's avatar Pisit Sawangvonganan Committed by Carles Cufí
Browse files

shell: devmem: address `cmd_dump` multiple call problem



Call `getopt_init()` to reset `state->optind` instead of directly setting
`optind = 1`. The `getopt()` function uses `getopt_state` from
`getopt_state_get` for state handling, so `getopt_init()` should be called
to correctly run the command again.

Signed-off-by: default avatarPisit Sawangvonganan <pisit@ndrsolution.com>
parent 93ee60fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment