From b007fd9040356ee80dc707fa7a1a114c98bdeb55 Mon Sep 17 00:00:00 2001 From: "Stephen R. van den Berg" <srb@cuci.nl> Date: Tue, 11 Nov 2014 22:37:18 +0100 Subject: [PATCH] Fundamental properties of empty strings corrected. An empty string: - is NOT lowercase. - is NOT uppercase. - does NOT have a minimum and maximum equal to zero. --- src/stralloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/stralloc.c b/src/stralloc.c index 02188a3ef0..69c20f0755 100644 --- a/src/stralloc.c +++ b/src/stralloc.c @@ -2139,8 +2139,6 @@ void init_shared_string_table(void) base_table=xcalloc(sizeof(struct pike_string *), htable_size); empty_pike_string = make_shared_string(""); - empty_pike_string->flags |= STRING_CONTENT_CHECKED | STRING_IS_LOWERCASE | STRING_IS_UPPERCASE; - empty_pike_string->min = empty_pike_string->max = 0; } #ifdef DO_PIKE_CLEANUP -- GitLab