Changeset: 5c9185f7e204 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5c9185f7e204
Modified Files:
monetdb5/modules/mal/pcre.c
Branch: Jan2022
Log Message:
seems msvc needs more initialisation
diffs (30 lines):
diff --git a/monetdb5/modules/mal/pcre.c b/monetdb5/modules/mal/pcre.c
--- a/monetdb5/modules/mal/pcre.c
+++ b/monetdb5/modules/mal/pcre.c
@@ -228,7 +228,7 @@ mywstrncaseeq(const char *restrict s1, c
static inline int
mystrcasecmp(const char *s1, const char *s2)
{
- uint32_t c1, c2;
+ uint32_t c1 = 0, c2 = 0;
for (;;) {
size_t nn1 = utfc8touc(&c1, s1);
@@ -256,7 +256,7 @@ mystrcasecmp(const char *s1, const char
static inline int
mywstrcasecmp(const char *restrict s1, const uint32_t *restrict s2)
{
- uint32_t c1;
+ uint32_t c1 = 0;
for (;;) {
size_t nn1 = utfc8touc(&c1, s1);
@@ -292,7 +292,7 @@ mywstrcasestr(const char *restrict hayst
size_t h;
size_t step = 0;
for (i = h = 0; i < nlen; i++) {
- uint32_t c;
+ uint32_t c = 0;
size_t j = utfc8touc(&c, haystack + h);
if (j == 0 || j == (size_t) -1)
return NULL;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list