Permalink
Browse files

fixed address to char

  • Loading branch information...
1 parent d2ee903 commit 82c420859f354647237b808e22096ef458d1d925 @yappo committed Mar 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 mysql_address_normalize.cc
@@ -154,7 +154,8 @@ char* address_normalize(UDF_INIT* initid, UDF_ARGS* args, char* result, unsigned
{
CTX *ctx;
CURLcode status;
- char *escaped_addres, *uri, *normalized_address;
+ char *escaped_addres, *uri;
+ const char *normalized_address;
size_t escaped_addres_length, normalized_address_length;
long long is_strict_mode;
int ret;
@@ -220,7 +221,7 @@ char* address_normalize(UDF_INIT* initid, UDF_ARGS* args, char* result, unsigned
goto error;
string address = result["address"].to_str();
- normalized_address = &(address)[0];
+ normalized_address = address.c_str();
normalized_address_length = address.size();
} else {
goto error;

0 comments on commit 82c4208

Please sign in to comment.