summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormonty@mysql.com/narttu.mysql.fi <>2007-02-21 13:02:57 +0200
committermonty@mysql.com/narttu.mysql.fi <>2007-02-21 13:02:57 +0200
commit222e128b34e7cfa67270a03c3d690d81dc0bc17b (patch)
treea5373ac33cc100031b219da1e424961b585d3947 /sql
parent120e3f5ee1a5f2d62f6a4ff10db0797c5ac42287 (diff)
downloadmariadb-git-222e128b34e7cfa67270a03c3d690d81dc0bc17b.tar.gz
Fixed unsafe define of uint4korr()
Fixed that --extern works with mysql-test-run.pl Small trivial cleanups
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_prepare.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 050885e7d17..44595c5da8a 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2203,11 +2203,11 @@ void mysql_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
{
uchar *packet= (uchar*)packet_arg; // GCC 4.0.1 workaround
ulong stmt_id= uint4korr(packet);
- ulong flags= (ulong) ((uchar) packet[4]);
+ ulong flags= (ulong) packet[4];
/* Query text for binary, general or slow log, if any of them is open */
String expanded_query;
#ifndef EMBEDDED_LIBRARY
- uchar *packet_end= (uchar *) packet + packet_length - 1;
+ uchar *packet_end= packet + packet_length - 1;
#endif
Prepared_statement *stmt;
bool error;