mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-02 20:08:29 +00:00
st/oxr: Fix crash
This commit is contained in:
parent
2b539f9750
commit
5b61a9b905
|
@ -124,6 +124,12 @@ min_size_t(size_t a, size_t b)
|
|||
static bool
|
||||
starts_with(const char *with, const char *string)
|
||||
{
|
||||
assert(with != NULL);
|
||||
|
||||
if (string == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; with[i] != 0; i++) {
|
||||
if (string[i] != with[i]) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue