mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
As pointed by Coverity, the 'paintItem' function in the WMBrowser widget is checking for nullity of its text argument, but before that it called the strlen function which crashes on NULL pointer. This patch moves the strlen call to the right place and reduce the lifespan of 'textLen' to highlight incorrect tries to use the variable. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
28 KiB
28 KiB