Commit bd7d7714 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 06e0220e
...@@ -240,10 +240,10 @@ static char *build_win32_name( const char *source, const char *adapter_name ) ...@@ -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 ) static char *build_win32_description( const struct pcap_interface *unix_dev )
{ {
int len = strlen(unix_dev->name) + 1; 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 (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) if (unix_dev->description)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment