1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

- Fixed license header

- More OpenSSL 1.1 fixes
This commit is contained in:
Georg Richter
2016-08-05 07:39:10 +02:00
parent 4f2c9da859
commit dd9ebcf56a
5 changed files with 41 additions and 25 deletions

View File

@@ -125,7 +125,10 @@ my_context_yield(struct my_context *c)
int
my_context_init(struct my_context *c, size_t stack_size)
{
ma_assert(sizeof(char *) <= SIZEOF_INT * 2);
#if SIZEOF_CHARP > SIZEOF_INT*2
#error Error: Unable to store pointer in 2 ints on this architecture
#endif
memset(c, 0, sizeof(*c));
if (!(c->stack= malloc(stack_size)))
return -1; /* Out of memory */