summaryrefslogtreecommitdiff
path: root/extra/comp_err.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-05-21 22:23:14 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2011-05-21 22:23:14 +0200
commit4749f34bf0c4456ad4bfe8c0f15d0b266052ba6f (patch)
treedfdd4372ecbeb46585e0c8e22d4aaea690ddf267 /extra/comp_err.c
parentf610296d98917908d49dc70d5075ea02ff68243d (diff)
downloadmariadb-git-4749f34bf0c4456ad4bfe8c0f15d0b266052ba6f.tar.gz
Fix comp_errr crash ( fprintf crashes wheb uninitialized string is passed)
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r--extra/comp_err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c
index 11c36bb7f85..24ec8974d03 100644
--- a/extra/comp_err.c
+++ b/extra/comp_err.c
@@ -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;