xkbtext: fix copy-paste error
As can be seen in diff, nOut is always 0 here. The code was likely copy-pasted from comparisons further below. Fixes LGTM warning "Comparison is always false because nOut <= 0." Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
parent
49c64bd169
commit
bad94e88ce
|
@ -967,8 +967,7 @@ CopySetLockControlsArgs(XkbDescPtr xkb, XkbAction *action, char *buf, int *sz)
|
|||
int nOut = 0;
|
||||
|
||||
if (tmp & XkbRepeatKeysMask) {
|
||||
snprintf(tbuf, sizeof(tbuf), "%sRepeatKeys", (nOut > 0 ? "+" : ""));
|
||||
TryCopyStr(buf, tbuf, sz);
|
||||
TryCopyStr(buf, "RepeatKeys", sz);
|
||||
nOut++;
|
||||
}
|
||||
if (tmp & XkbSlowKeysMask) {
|
||||
|
|
Loading…
Reference in New Issue