trivial: Fix a typo when matching device VID:PIDs

Found using Coverity.
This commit is contained in:
Richard Hughes 2016-11-09 19:35:23 +00:00
parent 8072bb6fb7
commit dfb30d930a

View File

@ -228,7 +228,7 @@ dfu_tool_get_defalt_device (DfuToolPrivate *priv, GError **error)
return NULL;
}
pid = g_ascii_strtoull (tmp + 1, NULL, 16);
if (vid == 0 || vid > G_MAXUINT16) {
if (pid == 0 || pid > G_MAXUINT16) {
g_set_error_literal (error,
DFU_ERROR,
DFU_ERROR_INTERNAL,