Francois Gouget : winebus.sys: Avoid an unneeded strlen() call.
Alexandre Julliard
julliard at winehq.org
Tue Oct 23 16:10:03 CDT 2018
Module: wine
Branch: master
Commit: a0536cab0326da35713e43859fc9631bf6fc8122
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a0536cab0326da35713e43859fc9631bf6fc8122
Author: Francois Gouget <fgouget at free.fr>
Date: Tue Oct 23 15:51:32 2018 +0200
winebus.sys: Avoid an unneeded strlen() call.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winebus.sys/bus_udev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index dabda6a..64b245e 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -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;
More information about the wine-cvs
mailing list