Skip to content

Commit 23a8a34

Browse files
committed
fix(agent): unneeded var
1 parent e27a78e commit 23a8a34

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

agent/lib_php_amqplib.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,14 @@
8989
* Returns : None
9090
*/
9191
static void nr_php_amqplib_ensure_class() {
92-
zval retval_zpd;
9392
int result = FAILURE;
9493

9594
result = zend_eval_string("class_exists('PhpAmqpLib\\Channel\\AMQPChannel');",
96-
&retval_zpd, "Get nr_php_amqplib_class_exists");
95+
NULL, "Get nr_php_amqplib_class_exists");
9796
/*
9897
* We don't need to check anything else at this point. If this fails, there's
9998
* nothing else we can do anyway.
10099
*/
101-
102-
zval_dtor(&retval_zpd);
103100
}
104101

105102
/*

0 commit comments

Comments
 (0)