mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
utmpupdate: Don't complain about an error if the utmp is just empty
This removes a misleading error message during startup.
This commit is contained in:
parent
3b3e7d3f46
commit
2a22d346dc
Notes:
sideshowbarker
2024-07-18 22:04:04 +09:00
Author: https://github.com/awesomekling
Commit: 2a22d346dc
1 changed files with 6 additions and 4 deletions
|
@ -80,11 +80,13 @@ int main(int argc, char** argv)
|
|||
|
||||
JsonObject json;
|
||||
|
||||
if (!file_contents.is_empty()) {
|
||||
if (!previous_json.has_value() || !previous_json.value().is_object()) {
|
||||
dbgln("Error: Could not parse JSON");
|
||||
} else {
|
||||
json = previous_json.value().as_object();
|
||||
}
|
||||
}
|
||||
|
||||
if (flag_create) {
|
||||
JsonObject entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue