diff options
author | Frank M. Kromann <fmk@php.net> | 2003-02-09 09:40:56 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2003-02-09 09:40:56 +0000 |
commit | bcf2e083cc5092aa2890d99a4bf9eb3e4aded883 (patch) | |
tree | 4158ded79580d67c879673956e03c4c65a652abc /ext/mssql/php_mssql.c | |
parent | ed7d034849c807ff56a2c8c8d5ce9cf4aaec3b8f (diff) | |
download | php-git-bcf2e083cc5092aa2890d99a4bf9eb3e4aded883.tar.gz |
cleanup variable initializations
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r-- | ext/mssql/php_mssql.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 31a4df838d..f96fbc3789 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -1866,16 +1866,13 @@ PHP_FUNCTION(mssql_init) Adds a parameter to a stored procedure or a remote stored procedure */ PHP_FUNCTION(mssql_bind) { - int type, is_output, is_null, datalen, maxlen; + int type, is_output, is_null, datalen, maxlen = -1; zval **stmt, **param_name, **var, **yytype; mssql_link *mssql_ptr; mssql_statement *statement; mssql_bind bind,*bindp; - int id, status; - LPBYTE value; - - id=0; - status=0; + int id = 0, status = 0; + LPBYTE value = NULL; /* BEGIN input validation */ switch(ZEND_NUM_ARGS()) { @@ -1887,8 +1884,6 @@ PHP_FUNCTION(mssql_bind) type=Z_LVAL_PP(yytype); is_null=FALSE; is_output=FALSE; - maxlen=-1; - break; case 5: { @@ -1902,7 +1897,6 @@ PHP_FUNCTION(mssql_bind) type=Z_LVAL_PP(yytype); is_null=FALSE; is_output=Z_LVAL_PP(yyis_output); - maxlen=-1; } break; @@ -1918,7 +1912,6 @@ PHP_FUNCTION(mssql_bind) type=Z_LVAL_PP(yytype); is_output=Z_LVAL_PP(yyis_output); is_null=Z_LVAL_PP(yyis_null); - maxlen=-1; } break; |