From 7a3851a607637f64774b6371e8c4c0e918b41b08 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Mon, 19 Feb 2024 03:08:45 +0100 Subject: [PATCH] Fix a bug in the vardel command --- src/dbg/commands/cmd-variables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbg/commands/cmd-variables.cpp b/src/dbg/commands/cmd-variables.cpp index b330aaea..94ab0ba8 100644 --- a/src/dbg/commands/cmd-variables.cpp +++ b/src/dbg/commands/cmd-variables.cpp @@ -51,7 +51,7 @@ bool cbInstrVarDel(int argc, char* argv[]) { if(IsArgumentsLessThan(argc, 2)) return false; - if(!vardel(argv[1], false)) + if(vardel(argv[1], false) != 0) dprintf(QT_TRANSLATE_NOOP("DBG", "Could not delete variable \"%s\"\n"), argv[1]); else dprintf(QT_TRANSLATE_NOOP("DBG", "Deleted variable \"%s\"\n"), argv[1]);