Commit a0536cab authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winebus.sys: Avoid an unneeded strlen() call.

parent 4f36c83f
...@@ -1084,7 +1084,7 @@ static int parse_uevent_info(const char *uevent, DWORD *vendor_id, ...@@ -1084,7 +1084,7 @@ static int parse_uevent_info(const char *uevent, DWORD *vendor_id,
else if (strcmp(key, "HID_UNIQ") == 0) else if (strcmp(key, "HID_UNIQ") == 0)
{ {
/* The caller has to free the serial number */ /* The caller has to free the serial number */
if (strlen(value)) if (*value)
{ {
*serial_number = (WCHAR*)strdupAtoW(value); *serial_number = (WCHAR*)strdupAtoW(value);
found_serial = 1; found_serial = 1;
......
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