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

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2018-10-23 15:51:32 +02:00 committed by Alexandre Julliard
parent 4f36c83fa3
commit a0536cab03
1 changed files with 1 additions and 1 deletions

View File

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