Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glib/gbytes: Be more careful when saving a GBytes of NULL
In 1e3b010 the behaviour of `g_bytes_new (NULL, 0)` was changed; before the `g_bytes_get_data()` would return NULL as expected, but now it returns a pointer outside the single GBytes allocation. This breaks the fwupd self tests as we use a GBytes of NULL to signify that the emulation data exists, but it has no content. Catch this case and restore the old behaviour.
- Loading branch information