From d06311bebab1424bdcea7131d6d94924721fc13e Mon Sep 17 00:00:00 2001 From: Eric Gallager Date: Fri, 4 Oct 2024 03:57:22 -0400 Subject: [PATCH] Fix code scanning alert no. 686: Redundant null check due to previous dereference Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/gdb/scm-exp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gdb/scm-exp.c b/src/gdb/scm-exp.c index 53507888b..a2115f4ae 100644 --- a/src/gdb/scm-exp.c +++ b/src/gdb/scm-exp.c @@ -503,9 +503,7 @@ scm_parse(void) write_exp_string(str); write_exp_elt_opcode(OP_EXPRSTRING); #else - if (start == NULL) { - ; /* ??? */ - } + /* Removed redundant null check for start */ #endif /* USE_EXPRSTRING */ return 0; }