Skip to content

Commit

Permalink
Use explicit type here
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed May 12, 2015
1 parent 81049cd commit 16265a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sapi/fpm/fpm/fpm_php_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
execute_data = prev = l;

while (prev) {
zend_uchar *type;

if (0 > fpm_trace_get_long(prev + offsetof(zend_execute_data, func), &l)) {
return -1;
Expand All @@ -142,12 +143,12 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
break;
}

if (0 > fpm_trace_get_long(function + offsetof(zend_function, type), &l)) {
type = (zend_uchar *)&l;
if (0 > fpm_trace_get_long(function + offsetof(zend_function, type), &l)) {
return -1;
}

/* zend_uchar? */
if (ZEND_USER_CODE(l)) {
if (ZEND_USER_CODE(*type)) {
if (0 > fpm_trace_get_long(function + offsetof(zend_op_array, filename), &l)) {
return -1;
}
Expand Down

0 comments on commit 16265a5

Please sign in to comment.