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

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2021-12-19 21:54:51 -07:00 committed by Alexandre Julliard
parent 06e0220ed6
commit bd7d771433
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{