mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
locale: drop unnecessary allocation
Fixes a bug introduced by 3d36b5d7e7b191fca7c5c65dbab94d99cf5f0230. Fixes #23777.
This commit is contained in:
parent
297cc64bfb
commit
e83cfbf972
@ -152,10 +152,6 @@ static int property_get_locale(
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
l = new0(char*, _VARIABLE_LC_MAX+1);
|
||||
if (!l)
|
||||
return -ENOMEM;
|
||||
|
||||
r = locale_context_build_env(&c->locale_context, &l, NULL);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user