I tested this patch and it does't crash anymore.
It appears that mdb_sql_error function outputs to stderr and char* without resetting the va_list(If resetting the va_list is legal I don't know)
I tested this patch and it does't crash anymore.
It appears that mdb_sql_error function outputs to stderr and char* without resetting the va_list(If resetting the va_list is legal I don't know)