Commit 41bf8397 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keyboard.c: simplify code

Based on PVS Studio finding: "V547 Expression 'data' is always true."
parent 5735e164
...@@ -1425,11 +1425,9 @@ static void nxagentXkbGetRemoteNames(void) ...@@ -1425,11 +1425,9 @@ static void nxagentXkbGetRemoteNames(void)
if ((after > 0) || (type != XA_STRING) || (format != 8)) if ((after > 0) || (type != XA_STRING) || (format != 8))
{ {
if (data) /* data non-null - has been checked above */
{ SAFE_XFree(data);
SAFE_XFree(data); return;
return;
}
} }
char *name = data; char *name = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment