mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibCore: Fix invalid errno
Noone seems to check 'errno' when using LibCore, but let's make sure it's correct anyway.
This commit is contained in:
parent
72ac97ef6a
commit
6f607742dd
Notes:
sideshowbarker
2024-07-18 23:10:21 +09:00
Author: https://github.com/BenWiederhake
Commit: 6f607742dd
Pull-request: https://github.com/SerenityOS/serenity/pull/4965
Reviewed-by: https://github.com/bugaevc
Reviewed-by: https://github.com/emanuele6
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ String File::read_link(const StringView& link_path)
|
||||||
return { large_buffer_ptr, new_size };
|
return { large_buffer_ptr, new_size };
|
||||||
// Otherwise, here's not much we can do, unless we want to loop endlessly
|
// Otherwise, here's not much we can do, unless we want to loop endlessly
|
||||||
// in this case. Let's leave it up to the caller whether to loop.
|
// in this case. Let's leave it up to the caller whether to loop.
|
||||||
errno = -EAGAIN;
|
errno = EAGAIN;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue