0daf48d9aa
Resolves: #2047682,#2068043,#2068131,#2073003,#2073994,#2082131,#2083493,#2087652,#2100340
32 lines
915 B
Diff
32 lines
915 B
Diff
From b93eca3f277547c7e45c6840f2a582b20319a93a Mon Sep 17 00:00:00 2001
|
|
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
Date: Sat, 18 Jun 2022 11:06:46 +0900
|
|
Subject: [PATCH] locale: drop unnecessary allocation
|
|
|
|
Fixes a bug introduced by 3d36b5d7e7b191fca7c5c65dbab94d99cf5f0230.
|
|
|
|
Fixes #23777.
|
|
|
|
(cherry picked from commit e83cfbf97247e391e9fc19a7abb2712c77f3b4c0)
|
|
|
|
Related: #2087652
|
|
---
|
|
src/locale/localed.c | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
diff --git a/src/locale/localed.c b/src/locale/localed.c
|
|
index 2c324efb14..791b5e60dd 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;
|