Navigation Menu

Skip to content

Commit

Permalink
use constant instead of magic number.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 23, 2011
1 parent 56d8b4c commit ff31d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -779,8 +779,8 @@ static int mrn_set_key_buf(grn_ctx *ctx, Field *field,
}
case MYSQL_TYPE_BLOB:
{
ptr += 2;
String tmp;
ptr += HA_KEY_BLOB_LENGTH;
const char *val = ptr;
int len = strlen(val);
memcpy(buf, val, len);
Expand Down

0 comments on commit ff31d97

Please sign in to comment.