diff options
author | unknown <serg@serg.mylan> | 2005-01-24 15:48:25 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-01-24 15:48:25 +0100 |
commit | 8bdb500105f97e3007e652f73d99c373d38f2aad (patch) | |
tree | d0b61b703f3c601368669e4acab45d7567a4669b /sql/item_create.cc | |
parent | 3671fe1f72e02393d2a42c4defead8b5633c4394 (diff) | |
download | mariadb-git-8bdb500105f97e3007e652f73d99c373d38f2aad.tar.gz |
fixes/cleanups according to Coverity report
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 800489a6a72..99db184e71f 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -365,22 +365,19 @@ Item *create_func_sin(Item* a) Item *create_func_sha(Item* a) { - return new Item_func_sha(a); + return new Item_func_sha(a); } - + Item *create_func_space(Item *a) { CHARSET_INFO *cs= current_thd->variables.collation_connection; Item *sp; - + if (cs->mbminlen > 1) { + uint dummy_errors; sp= new Item_string("",0,cs); - if (sp) - { - uint dummy_errors; - sp->str_value.copy(" ", 1, &my_charset_latin1, cs, &dummy_errors); - } + sp->str_value.copy(" ", 1, &my_charset_latin1, cs, &dummy_errors); } else { |