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

This commit is contained in:
Aleksander Morgado
2012-07-30 20:18:05 +02:00
parent 7b13b5e1c0
commit 9512eda21d

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++)