Skip to content

Commit 1656de8

Browse files
committed
Fix NULL test for mibdirs
1 parent a68bc54 commit 1656de8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/snmp/snmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ PHP_FUNCTION(snmp_init_mib)
16521652
ZEND_PARSE_PARAMETERS_END();
16531653

16541654
// If the mibdirs has been changed, we need to reset the MIB tree at the end of the request
1655-
if (ZSTR_VAL(mibdirs) != NULL) {
1655+
if (mibdirs != NULL) {
16561656
mib_needs_reset = 1;
16571657
}
16581658

0 commit comments

Comments
 (0)