diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-03-03 21:44:07 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-03-03 21:45:32 +0100 |
commit | 6e8aee499ede4f8849653cdd248a6c0db5fb8b76 (patch) | |
tree | ea7acb1f5059a6ccb66f0387db688f49efa76d30 /nx-X11/programs/Xserver/hw/nxagent/Utils.h | |
parent | 19065e75ee2e0f7f84c3d52cb277cd4d542e0e11 (diff) | |
download | nx-libs-6e8aee499ede4f8849653cdd248a6c0db5fb8b76.tar.gz nx-libs-6e8aee499ede4f8849653cdd248a6c0db5fb8b76.tar.bz2 nx-libs-6e8aee499ede4f8849653cdd248a6c0db5fb8b76.zip |
nxagent: move validateString as inline func to Utils.h
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Utils.h')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h index a3cbc2e9f..8a3335424 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h @@ -48,4 +48,8 @@ #define MAX(A, B) ( (A) > (B) ? (A) : (B) ); #endif +static inline const char * validateString(const char *str) { + return str ? str : "(null)"; +} + #endif /* __Utils_H__ */ |