diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2023-04-09 00:00:37 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-05-05 22:08:38 +0000 |
commit | aa1214280d11c32f82961da44dee863098e1ac38 (patch) | |
tree | 082d6a22ce07dfa4b87e171ed303e16398993f31 /src/flash/nor/stellaris.c | |
parent | d4fe63e36b662ad274783585ff7222befbf54268 (diff) | |
download | riscv-openocd-aa1214280d11c32f82961da44dee863098e1ac38.zip riscv-openocd-aa1214280d11c32f82961da44dee863098e1ac38.tar.gz riscv-openocd-aa1214280d11c32f82961da44dee863098e1ac38.tar.bz2 |
flash: with pointers, use NULL instead of 0
Don't compare pointers with 0, use NULL when needed.
Don't pass 0 ad pointer argument, pass NULL.
Detected through 'sparse' tool.
Change-Id: I118554fffde41c94cea9e1201ea941ff3c1ee762
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7595
Tested-by: jenkins
Diffstat (limited to 'src/flash/nor/stellaris.c')
-rw-r--r-- | src/flash/nor/stellaris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 3a78952..972686e 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -1342,7 +1342,7 @@ COMMAND_HANDLER(stellaris_handle_recover_command) * cycle to recover. */ - Jim_Eval_Named(CMD_CTX->interp, "catch { hla_command \"debug unlock\" }", 0, 0); + Jim_Eval_Named(CMD_CTX->interp, "catch { hla_command \"debug unlock\" }", NULL, 0); if (!strcmp(Jim_GetString(Jim_GetResult(CMD_CTX->interp), NULL), "0")) { retval = ERROR_OK; goto user_action; |