fmk Sun Feb 9 04:40:56 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/mssql php_mssql.c Log: cleanup variable initializations Index: php4/ext/mssql/php_mssql.c diff -u php4/ext/mssql/php_mssql.c:1.86.2.12 php4/ext/mssql/php_mssql.c:1.86.2.13 --- php4/ext/mssql/php_mssql.c:1.86.2.12 Sun Feb 9 03:32:54 2003 +++ php4/ext/mssql/php_mssql.c Sun Feb 9 04:40:56 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mssql.c,v 1.86.2.12 2003/02/09 08:32:54 fmk Exp $ */ +/* $Id: php_mssql.c,v 1.86.2.13 2003/02/09 09:40:56 fmk Exp $ */ #ifdef COMPILE_DL_MSSQL #define HAVE_MSSQL 1 @@ -1866,16 +1866,13 @@ 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 @@ type=Z_LVAL_PP(yytype); is_null=FALSE; is_output=FALSE; - maxlen=-1; - break; case 5: { @@ -1902,7 +1897,6 @@ type=Z_LVAL_PP(yytype); is_null=FALSE; is_output=Z_LVAL_PP(yyis_output); - maxlen=-1; } break; @@ -1918,7 +1912,6 @@ type=Z_LVAL_PP(yytype); is_output=Z_LVAL_PP(yyis_output); is_null=Z_LVAL_PP(yyis_null); - maxlen=-1; } break;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php