diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-05-07 18:16:47 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-05-31 12:52:35 +0200 |
commit | 2a0d57831a6ec4b8d3d9f6c1c3e15cd752e7ec75 (patch) | |
tree | 322f481ea3eccbe7de228ee59105aa4ee0548221 /nx-X11 | |
parent | 9e7afaa4260344df8957e276e7e99ecab2a0b943 (diff) | |
download | nx-libs-2a0d57831a6ec4b8d3d9f6c1c3e15cd752e7ec75.tar.gz nx-libs-2a0d57831a6ec4b8d3d9f6c1c3e15cd752e7ec75.tar.bz2 nx-libs-2a0d57831a6ec4b8d3d9f6c1c3e15cd752e7ec75.zip |
Client.h: make macro NULL pointer safe
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Client.h b/nx-X11/programs/Xserver/hw/nxagent/Client.h index a3e6e3cf3..ac2f34e8b 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Client.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Client.h @@ -75,8 +75,8 @@ extern void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, v #define nxagentClientIsDialog(pClient) \ (nxagentClientHint(pClient) == NXCLIENT_DIALOG) -#define nxagentClientInfoString(pClient) \ - (nxagentClientPriv(pClient) -> clientInfoString) +#define nxagentClientInfoString(pClient) \ + ((pClient) ? nxagentClientPriv(pClient) -> clientInfoString : NULL) /* * The actual reason why the client is sleeping. |