plugin: don't apply product ID filters if no vendor ID was retrieved

This commit is contained in:
Aleksander Morgado
2012-08-20 16:26:55 +02:00
parent 7b13b5e1c0
commit 9512eda21d
+1 -1
View File
@@ -249,7 +249,7 @@ apply_pre_probing_filters (MMPlugin *self,
* that is the case, filter by vendor+product ID pair */
if (self->priv->product_ids) {
/* If we didn't get any product: filtered */
if (!product)
if (!product || !vendor)
product_filtered = TRUE;
else {
for (i = 0; self->priv->product_ids[i].l; i++)