Skip to content

Commit

Permalink
fix type passed to function and remove unneeded declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
bendailey committed Dec 2, 2015
1 parent 4c2838b commit 086aebf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 4d_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ static int pdo_4d_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data
}
{
FOURD_BLOB str;
int len=0;
str.length=Z_STRLEN_P(param->parameter);
str.data=Z_STRVAL_P(param->parameter);
fourd_bind_param(S->state,param->paramno,VK_BLOB, &str);
Expand Down Expand Up @@ -370,7 +369,7 @@ static int pdo_4d_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data
default:
{
FOURD_STRING str;
int len=0;
size_t len=0;
char* val=NULL;
convert_to_string(param->parameter);
val=php_mb_convert_encoding(Z_STRVAL_P(param->parameter), Z_STRLEN_P(param->parameter),FOURD_CHARSET_SERVEUR,S->charset,&len TSRMLS_CC);
Expand Down

0 comments on commit 086aebf

Please sign in to comment.