summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-10-27 11:04:52 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-10-27 11:05:51 -0300
commite9ee9cc3a0c414ec2a14a0817e89c4a46c8f93f0 (patch)
tree03f2375f8c5182ea2c08b6e6b29a793f6c6070fb /src
parentd6a6dd54a13bfe079ae97eb016dd902e5dec5e60 (diff)
evil: undef setlocale to avoid recursion
Summary: evil_setlocale implementation must not call itself, so it must #undef setlocale to avoid replacing with evil_setlocale. Reviewers: vtorri, jptiz, lucas Reviewed By: vtorri, jptiz Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12184
Diffstat (limited to 'src')
-rw-r--r--src/lib/evil/evil_locale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evil/evil_locale.c b/src/lib/evil/evil_locale.c
index 15610da6a6..c932b27a69 100644
--- a/src/lib/evil/evil_locale.c
+++ b/src/lib/evil/evil_locale.c
@@ -35,6 +35,8 @@
35 */ 35 */
36static char _evil_locale_buf[18]; 36static char _evil_locale_buf[18];
37 37
38#undef setlocale
39
38char *evil_setlocale(int category, const char *locale) 40char *evil_setlocale(int category, const char *locale)
39{ 41{
40 char buf[9]; 42 char buf[9];