1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix comp_errr crash ( fprintf crashes wheb uninitialized string is passed)

This commit is contained in:
Vladislav Vaintroub
2011-05-21 22:23:14 +02:00
parent f610296d98
commit 4749f34bf0

View File

@@ -870,6 +870,7 @@ static struct errors *generate_empty_message(uint d_code)
if (my_init_dynamic_array(&new_error->msg, sizeof(struct message), 0, 1))
return(0); /* OOM: Fatal error */
new_error->er_name= NULL;
new_error->d_code= d_code;
new_error->sql_code1= empty_string;
new_error->sql_code2= empty_string;