replace 0 with NULL for NULL pointers

This updates many places where 0 is used as NULL pointer.

There are a few warnings left when I build the default
configuration but they either relate to code
outside of mesa or where "None" is used instead.

Found with static analysis (smatch)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12174>
This commit is contained in:
Thomas H.P. Andersen
2021-08-02 23:39:27 +02:00
committed by Marge Bot
parent 60c711833f
commit 7daba1fe65
39 changed files with 150 additions and 150 deletions

View File

@@ -710,7 +710,7 @@ static void show_fps(struct dri2_drawable *draw)
struct timeval tv;
uint64_t current_time;
gettimeofday(&tv, 0);
gettimeofday(&tv, NULL);
current_time = (uint64_t)tv.tv_sec*1000000 + (uint64_t)tv.tv_usec;
draw->frames++;