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]);