mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
fix warning
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@250 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -185,11 +185,14 @@ void MwLLNextEvent(MwLL handle) {
|
||||
int n = -1;
|
||||
char str[512];
|
||||
KeySym sym;
|
||||
|
||||
str[0] = 0;
|
||||
|
||||
XLookupString(&ev.xkey, str, 512, &sym, NULL);
|
||||
|
||||
/* HACK: this is bad, you can guess why */
|
||||
if(strlen(str) == 1) {
|
||||
char s = str == NULL ? 0 : str[0];
|
||||
char s = str[0];
|
||||
|
||||
if(ev.xkey.state & (ShiftMask | LockMask)) {
|
||||
n = toupper((int)s);
|
||||
|
||||
Reference in New Issue
Block a user