mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
treewide: fix errno assignments
Do not set `errno` to a negative value.
This commit is contained in:
parent
1b115eaf31
commit
f524271b81
2 changed files with 2 additions and 2 deletions
|
|
@ -211,7 +211,7 @@ struct spa_bt_quirks *spa_bt_quirks_create(const struct spa_dict *info, struct s
|
|||
const char *str;
|
||||
|
||||
if (!info) {
|
||||
errno = -EINVAL;
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ struct pw_memmap * pw_memblock_map(struct pw_memblock *block,
|
|||
(int64_t) sb.st_size);
|
||||
|
||||
if (!valid) {
|
||||
errno = -EINVAL;
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue