[PATCH] libwine: Use NULL instead of casting 0.

Francois Gouget fgouget at free.fr
Tue Mar 2 13:18:06 CST 2021


Signed-off-by: Francois Gouget <fgouget at free.fr>
---
It's a matter of taste I guess, but it's what NULL is here for.

 libs/wine/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/wine/string.c b/libs/wine/string.c
index d6fb88f8eca..16bb97bec8e 100644
--- a/libs/wine/string.c
+++ b/libs/wine/string.c
@@ -479,7 +479,7 @@ noconv:
 
 long int atolW( const WCHAR *str )
 {
-    return strtolW( str, (WCHAR **)0, 10 );
+    return strtolW( str, NULL, 10 );
 }
 
 int atoiW( const WCHAR *str )
-- 
2.20.1




More information about the wine-devel mailing list