mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
sp_cache_package_routine: fix compile warning
(clang-3.8)
sql/sp.cc:2834:53: warning: implicit conversion of NULL constant to 'size_t' (aka 'unsigned long') [-Wnull-conversion]
size_t prefix_length= dot ? dot - tmp.str + 1 : NULL;
~~~~~~~~~~~~~ ^~~~
0
This commit is contained in:
parent
c5b28e55f6
commit
005d53f6d5
1 changed files with 1 additions and 1 deletions
|
|
@ -2831,7 +2831,7 @@ Sp_handler::sp_cache_package_routine(THD *thd,
|
|||
sp_package *pkg= ph ? ph->get_package() : NULL;
|
||||
LEX_CSTRING tmp= name->m_name;
|
||||
const char *dot= strrchr(tmp.str, '.');
|
||||
size_t prefix_length= dot ? dot - tmp.str + 1 : NULL;
|
||||
size_t prefix_length= dot ? dot - tmp.str + 1 : 0;
|
||||
tmp.str+= prefix_length;
|
||||
tmp.length-= prefix_length;
|
||||
LEX *rlex= pkg ? pkg->m_routine_implementations.find(tmp, type()) : NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue