Skip to content

Commit 712c914

Browse files
committed
Suppress uninitialized variable warning in snmp
These are false positive warnings.
1 parent 73ab7b3 commit 712c914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/snmp/snmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ static void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st, int version)
10821082
{
10831083
zend_string *oid_str, *type_str = NULL, *value_str = NULL;
10841084
HashTable *oid_ht, *type_ht = NULL, *value_ht = NULL;
1085-
char *a1, *a2, *a3, *a4, *a5, *a6, *a7;
1085+
char *a1 = NULL, *a2 = NULL, *a3 = NULL, *a4 = NULL, *a5 = NULL, *a6 = NULL, *a7 = NULL;
10861086
size_t a1_len, a2_len, a3_len, a4_len, a5_len, a6_len, a7_len;
10871087
zend_bool use_orignames = 0, suffix_keys = 0;
10881088
zend_long timeout = SNMP_DEFAULT_TIMEOUT;

0 commit comments

Comments
 (0)