WPrefs: Provide fall-back colour in the case of colour name not found
commit29cf48b934fcc4f82a33d9ca8137fc1c3807d078
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 16 May 2021 13:47:06 +0000 (16 15:47 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 18 May 2021 16:49:17 +0000 (18 17:49 +0100)
tree5524dd031bc36d3700c9ff270b4630d76cd72ae2
parent816fa00625c45c90ffcabdcb4eb0b14b66ce396d
WPrefs: Provide fall-back colour in the case of colour name not found

As reported by Coverity (CID #331571), we did not check the return value of
the call to XParseColor. If the function is given a colour name that it
does not know, we would return an uninitialised colour.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/Appearance.c