Commit db134de3 authored by Ulrich Sibiller's avatar Ulrich Sibiller

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."
parent 5871100d
...@@ -409,6 +409,9 @@ static void nxagentWriteAtom(Atom local, XlibAtom remote, const char *string) ...@@ -409,6 +409,9 @@ static void nxagentWriteAtom(Atom local, XlibAtom remote, const char *string)
#ifdef WARNING #ifdef WARNING
if (s == NULL) 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__); fprintf(stderr, "%s: Malloc failed.\n", __func__);
} }
#endif #endif
......
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