[PATCH] dxdiag: removed unused endptr assignment (Coverity)

Marcus Meissner marcus at jet.franken.de
Tue Jun 28 01:31:30 CDT 2011


Hi,

CID 5194

Ciao, Marcus
---
 programs/dxdiag/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/dxdiag/main.c b/programs/dxdiag/main.c
index 54bb84f..48191ea 100644
--- a/programs/dxdiag/main.c
+++ b/programs/dxdiag/main.c
@@ -80,7 +80,7 @@ static BOOL process_file_name(const WCHAR *cmdline, enum output_type output_type
     filename[len] = '\0';
 
     /* Append an extension appropriate for the output type if the filename does not have one. */
-    if (!(endptr = strrchrW(filename, '.')))
+    if (NULL == strrchrW(filename, '.'))
     {
         const WCHAR *filename_ext = get_output_extension(output_type);
 
-- 
1.7.3.4




More information about the wine-patches mailing list