Alex Henrie : wpcap: Remove unused variable ptr from build_win32_description (cppcheck).

Alexandre Julliard julliard at winehq.org
Tue Dec 21 15:16:32 CST 2021


Module: wine
Branch: master
Commit: bd7d771433adc65fe554369d79395c8767135493
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=bd7d771433adc65fe554369d79395c8767135493

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Dec 19 21:54:51 2021 -0700

wpcap: Remove unused variable ptr from build_win32_description (cppcheck).

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wpcap/wpcap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index 59e8f43f77c..b140deeb3d2 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -240,10 +240,10 @@ static char *build_win32_name( const char *source, const char *adapter_name )
 static char *build_win32_description( const struct pcap_interface *unix_dev )
 {
     int len = strlen(unix_dev->name) + 1;
-    char *ret, *ptr;
+    char *ret;
 
     if (unix_dev->description && unix_dev->description[0]) len += strlen(unix_dev->description) + 1;
-    if ((ret = ptr = malloc( len )))
+    if ((ret = malloc( len )))
     {
         if (unix_dev->description)
         {




More information about the wine-cvs mailing list