summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-01-24 15:48:25 +0100
committerserg@serg.mylan <>2005-01-24 15:48:25 +0100
commit67ba2e367a2d21321ae58048d131ab39248dea00 (patch)
treed0b61b703f3c601368669e4acab45d7567a4669b /sql/sql_lex.cc
parentb53757ba91f67885911f677d09a2757774998b7b (diff)
downloadmariadb-git-67ba2e367a2d21321ae58048d131ab39248dea00.tar.gz
fixes/cleanups according to Coverity report
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 2783406e16a..e0cb43e093e 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1685,9 +1685,6 @@ void st_select_lex::print_order(String *str, ORDER *order)
void st_select_lex::print_limit(THD *thd, String *str)
{
- if (!thd)
- thd= current_thd;
-
if (explicit_limit)
{
str->append(" limit ", 7);