Marcus Meissner : dxdiag: Removed unused endptr assignment (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Jun 28 17:25:16 CDT 2011


Module: wine
Branch: master
Commit: 8598b121d65a2aad57df606fe93fb130e144ea5a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8598b121d65a2aad57df606fe93fb130e144ea5a

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Jun 28 08:31:30 2011 +0200

dxdiag: Removed unused endptr assignment (Coverity).

---

 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..3ced122 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 (!strrchrW(filename, '.'))
     {
         const WCHAR *filename_ext = get_output_extension(output_type);
 




More information about the wine-cvs mailing list