Browse Source

Merge commit '69b429c' into HEAD

Luke Dashjr 12 years ago
parent
commit
745bd11dc2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lowlevel.c

+ 3 - 1
lowlevel.c

@@ -83,7 +83,9 @@ int _lowlevel_detect(lowl_found_devinfo_func_t cb, const char *serial, const cha
 	
 	
 	LL_FOREACH_SAFE(devinfo_list, info, tmp)
 	LL_FOREACH_SAFE(devinfo_list, info, tmp)
 	{
 	{
-		if (serial && strcmp(serial, info->serial))
+		if (serial && ((!info->serial) || strcmp(serial, info->serial)))
+			continue;
+		if (product_needles[0] && !info->product)
 			continue;
 			continue;
 		for (i = 0; product_needles[i]; ++i)
 		for (i = 0; product_needles[i]; ++i)
 			if (!strstr(info->product, product_needles[i]))
 			if (!strstr(info->product, product_needles[i]))