From 213b87ec270c77e026d71ac1c83ac43ca1478a9f Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 May 2018 16:37:47 +1000 Subject: Backport: Avoid using 0 as NULL pointer. Backport of changeset 6948:b75edf4d00d3. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index d7d626742..19dd06d42 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