mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
guuid: fix shift operation to parse hex string in uuid_parse_string()
The actually parsed `@bytes` are not used because the only caller does not provide an output parameter to request them. So this bug had no effect in practice.
This commit is contained in:
parent
7b89641888
commit
10027a7cb6
@ -113,7 +113,7 @@ uuid_parse_string (const gchar *str,
|
|||||||
if (hi == -1 || lo == -1)
|
if (hi == -1 || lo == -1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
bytes[i++] = hi << 8 | lo;
|
bytes[i++] = hi << 4 | lo;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uuid != NULL)
|
if (uuid != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user