From 4ac5862a902d3f1d15c3feac47b20c20fe0e0b6a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 7 Aug 2022 15:48:22 +0200 Subject: [PATCH] Fix compilation warning ##anal Fix logic in code. --- libr/core/cmd_anal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libr/core/cmd_anal.c b/libr/core/cmd_anal.c index 4dec41e6a3..a3697a965e 100644 --- a/libr/core/cmd_anal.c +++ b/libr/core/cmd_anal.c @@ -7245,11 +7245,12 @@ static void cmd_anal_esil(RCore *core, const char *input, bool verbose) { break; case ' ': n = strchr (input, ' '); - if (!(n + 1)) { + n1 = n ? n + 1: NULL; + if (!n1 || !*n1) { r_core_esil_step (core, until_addr, until_expr, NULL, false); break; } - off = r_num_math (core->num, n + 1); + off = r_num_math (core->num, n1); cmd_aespc (core, -1, -1, off); break; default: