mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
Even though it shouldn't practically happen, better adding a trivial check, just in case. The check is really cheap and possibly optimized-out. | ../render/filter.c: In function ‘SetPicturePictFilter’: | ../render/filter.c:388:36: warning: dereference of possibly-NULL ‘new_params’ [CWE-690] [-Wanalyzer-possible-null-dereference] | 388 | pPicture->filter_params[i] = params[i]; | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>