From: Yu Watanabe Date: Sat, 18 Jun 2022 02:06:46 +0000 (+0900) Subject: locale: drop unnecessary allocation X-Git-Tag: v252-rc1~794 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e83cfbf97247e391e9fc19a7abb2712c77f3b4c0;p=thirdparty%2Fsystemd.git locale: drop unnecessary allocation Fixes a bug introduced by 3d36b5d7e7b191fca7c5c65dbab94d99cf5f0230. Fixes #23777. --- diff --git a/src/locale/localed.c b/src/locale/localed.c index 2c324efb148..791b5e60dd8 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -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;