Commit 005d53f6 authored by Daniel Black's avatar Daniel Black Committed by Sergey Vojtovich

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
parent c5b28e55
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment