mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-03 22:19:16 +00:00
trivial: Fix a typo when matching device VID:PIDs
Found using Coverity.
This commit is contained in:
parent
8072bb6fb7
commit
dfb30d930a
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user