thunderbolt: validation: don't print empty strings

Before: "Given location is outside of the given FW ((null))"
This commit is contained in:
Christian Kellner 2017-08-31 11:57:09 +02:00 committed by Richard Hughes
parent 44879b0252
commit 2be0c71b2c

View File

@ -94,7 +94,7 @@ read_location (const FuThunderboltFwLocation *location,
g_set_error (error,
FWUPD_ERROR, FWUPD_ERROR_READ,
"Given location is outside of the given FW (%s)",
location->description);
location->description ? location->description : "N/A");
return NULL;
}