mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 20:23:36 +08:00
parent
0a3fd5ce43
commit
a6fe020ab8
@ -69,8 +69,8 @@ static int config_parse_sleep_mode(
|
||||
void *data,
|
||||
void *userdata) {
|
||||
|
||||
_cleanup_strv_free_ char **modes = NULL;
|
||||
char ***sv = ASSERT_PTR(data);
|
||||
_cleanup_strv_free_ char **modes = NULL;
|
||||
int r;
|
||||
|
||||
assert(filename);
|
||||
@ -87,7 +87,7 @@ static int config_parse_sleep_mode(
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
return free_and_replace(*sv, modes);
|
||||
return strv_free_and_replace(*sv, modes);
|
||||
}
|
||||
|
||||
static void sleep_config_validate_state_and_mode(SleepConfig *sc) {
|
||||
|
Loading…
Reference in New Issue
Block a user