Commit 940d13db authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

winebus.sys: Declare a variable only when used.

udev_add_device declares a variable (product) even when it is not used on all platforms. Use the same condition for the declaration that already guards the code.
parent 4bbdbc75
...@@ -1329,7 +1329,9 @@ static void udev_add_device(struct udev_device *dev, int fd) ...@@ -1329,7 +1329,9 @@ static void udev_add_device(struct udev_device *dev, int fd)
if (!strcmp(subsystem, "hidraw")) if (!strcmp(subsystem, "hidraw"))
{ {
static const WCHAR hidraw[] = {'h','i','d','r','a','w',0}; static const WCHAR hidraw[] = {'h','i','d','r','a','w',0};
#ifdef HAVE_LINUX_HIDRAW_H
char product[MAX_PATH]; char product[MAX_PATH];
#endif
if (!desc.manufacturer[0]) memcpy(desc.manufacturer, hidraw, sizeof(hidraw)); if (!desc.manufacturer[0]) memcpy(desc.manufacturer, hidraw, sizeof(hidraw));
......
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