aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-01-04 16:17:36 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-01-15 19:50:35 +0100
commitdb134de3b9cefa6e0d76fe57f2feabe79ba9216c (patch)
tree342a12b6d8b1c2f1227620853728bf3d6816d8cb /nx-X11
parent5871100dd5db7f05e3f67cd90fda25dc9a68a29d (diff)
downloadnx-libs-db134de3b9cefa6e0d76fe57f2feabe79ba9216c.tar.gz
nx-libs-db134de3b9cefa6e0d76fe57f2feabe79ba9216c.tar.bz2
nx-libs-db134de3b9cefa6e0d76fe57f2feabe79ba9216c.zip
Atoms.c: add explanation for PVS Studio warning
"V575 The potential null pointer is passed into 'strlen' function. Inspect the first argument. Check lines: 420, 403."
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Atoms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Atoms.c b/nx-X11/programs/Xserver/hw/nxagent/Atoms.c
index 61953e2a6..ea7ad7599 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Atoms.c
@@ -409,6 +409,9 @@ static void nxagentWriteAtom(Atom local, XlibAtom remote, const char *string)
#ifdef WARNING
if (s == NULL)
{
+ /* we only warn here, because s being NULL ist not problem, it
+ will only result in NULL being stored in the privAtomMap, which
+ is perfectly legal. */
fprintf(stderr, "%s: Malloc failed.\n", __func__);
}
#endif