diff options
author | monty@mishka.local <> | 2004-10-20 01:28:42 +0300 |
---|---|---|
committer | monty@mishka.local <> | 2004-10-20 01:28:42 +0300 |
commit | 04c23808a856bd8c4425d52419592d58d9bc5f35 (patch) | |
tree | 1919e7f3a6a68e36dbbcf1dd8b6cd8729a975e36 /sql/sql_string.cc | |
parent | 57a85986ac46550dcf7ced4cb50111efe2a6e0ad (diff) | |
download | mariadb-git-04c23808a856bd8c4425d52419592d58d9bc5f35.tar.gz |
Review of all code pushed since last review
Simple optimzations and cleanups
Removed compiler warnings and fixed portability issues
Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server
Fixes for purify
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r-- | sql/sql_string.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc index 1ec0faafa8f..1044dc4e58e 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -537,7 +537,8 @@ uint32 String::numchars() int String::charpos(int i,uint32 offset) { - if (i<0) return i; + if (i <= 0) + return i; return str_charset->cset->charpos(str_charset,Ptr+offset,Ptr+str_length,i); } |