Skip to content

Commit

Permalink
Suppress uninitialized variable warning in snmp
Browse files Browse the repository at this point in the history
These are false positive warnings.
  • Loading branch information
nikic committed Sep 9, 2020
1 parent 73ab7b3 commit 712c914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/snmp/snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ static void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st, int version)
{
zend_string *oid_str, *type_str = NULL, *value_str = NULL;
HashTable *oid_ht, *type_ht = NULL, *value_ht = NULL;
char *a1, *a2, *a3, *a4, *a5, *a6, *a7;
char *a1 = NULL, *a2 = NULL, *a3 = NULL, *a4 = NULL, *a5 = NULL, *a6 = NULL, *a7 = NULL;
size_t a1_len, a2_len, a3_len, a4_len, a5_len, a6_len, a7_len;
zend_bool use_orignames = 0, suffix_keys = 0;
zend_long timeout = SNMP_DEFAULT_TIMEOUT;
Expand Down

0 comments on commit 712c914

Please sign in to comment.