mirror of
https://github.com/systemd/systemd.git
synced 2025-03-11 20:58:27 +03:00
basic/env-util: make function shorter
This commit is contained in:
parent
17d99f95c2
commit
451ae5a11a
@ -52,10 +52,7 @@ static bool env_name_is_valid_n(const char *e, size_t n) {
|
||||
}
|
||||
|
||||
bool env_name_is_valid(const char *e) {
|
||||
if (!e)
|
||||
return false;
|
||||
|
||||
return env_name_is_valid_n(e, strlen(e));
|
||||
return env_name_is_valid_n(e, strlen_ptr(e));
|
||||
}
|
||||
|
||||
bool env_value_is_valid(const char *e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user