1
0
Fork 0

DBG: allow setting temporary labels from the labelset command

This commit is contained in:
Duncan Ogilvie 2020-06-03 10:09:13 +02:00
parent 6293b90aff
commit 10da0d4654
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ bool cbInstrLabelSet(int argc, char* argv[])
duint addr = 0;
if(!valfromstring(argv[1], &addr, false))
return false;
if(!LabelSet(addr, stringformatinline(argv[2]).c_str(), true))
auto temporaryLabel = argc > 3;
if(!LabelSet(addr, stringformatinline(argv[2]).c_str(), true, temporaryLabel))
{
dputs(QT_TRANSLATE_NOOP("DBG", "Error setting label"));
return false;