From 77b024eddb3a79eb22c61b743b6a369e457abf20 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 May 2018 16:37:47 +1000 Subject: Avoid using 0 as NULL pointer. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 4a4079b1e..68fb3f05b 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -418,7 +418,7 @@ FontID FontCached::FindOrCreate(const FontParameters &fp) { ret = cur->fid; } } - if (ret == 0) { + if (!ret) { FontCached *fc = new FontCached(fp); fc->next = first; first = fc; -- cgit v1.2.3