summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_debug.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-10-07 13:49:00 +0000
committerAndrey Hristov <andrey@php.net>2010-10-07 13:49:00 +0000
commit0e519d247ede738f6b09458a580c3a3a8ca5f733 (patch)
tree8d6564c56ff22dc622c4a0f2dafe91d2de8f3f55 /ext/mysqlnd/mysqlnd_debug.c
parent412d15168192fdd3afafca5cff034bb5b451942f (diff)
downloadphp-git-0e519d247ede738f6b09458a580c3a3a8ca5f733.tar.gz
fix some uninitialized variables. also fix shadowing of global symbols
Diffstat (limited to 'ext/mysqlnd/mysqlnd_debug.c')
-rw-r--r--ext/mysqlnd/mysqlnd_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd_debug.c b/ext/mysqlnd/mysqlnd_debug.c
index 31d0874048..0c5c5153b6 100644
--- a/ext/mysqlnd/mysqlnd_debug.c
+++ b/ext/mysqlnd/mysqlnd_debug.c
@@ -1593,14 +1593,14 @@ static int mysqlnd_build_trace_args(zval **arg TSRMLS_DC, int num_args, va_list
case IS_OBJECT: {
char *class_name;
zend_uint class_name_len;
- int dup;
+ int dupl;
TRACE_APPEND_STR("Object(");
- dup = zend_get_object_classname(*arg, &class_name, &class_name_len TSRMLS_CC);
+ dupl = zend_get_object_classname(*arg, &class_name, &class_name_len TSRMLS_CC);
TRACE_APPEND_STRL(class_name, class_name_len);
- if(!dup) {
+ if (!dupl) {
efree(class_name);
}