Changeset: e91c10c1f5b9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e91c10c1f5b9
Modified Files:
        common/stream/stream.c
Branch: Oct2020
Log Message:

try to fix compilation issue on centos7.


diffs (21 lines):

diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -86,7 +86,7 @@ get_tl_error_buf(void)
                p = malloc(sizeof(*p));
                if (p == NULL)
                        return NULL;
-               *p = (struct tl_error_buf) { 0 };
+               *p = (struct tl_error_buf) { .msg = 0 };
                pthread_setspecific(tl_error_key, p);
                struct tl_error_buf *second_attempt = 
pthread_getspecific(tl_error_key);
                assert(p == second_attempt /* maybe mnstr_init has not been 
called? */);
@@ -124,7 +124,7 @@ get_tl_error_buf(void)
                p = malloc(sizeof(*p));
                if (p == NULL)
                        return NULL;
-               *p = (struct tl_error_buf) { 0 };
+               *p = (struct tl_error_buf) { .msg = 0 };
                if (!TlsSetValue(tl_error_key, p)) {
                        free(p);
                        return NULL;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to