From f11801712eecf3f8a0b794ab12dd8440e1d643b8 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 27 Sep 2019 16:14:50 +0200 Subject: [PATCH] Initialize variables These variables may not be initialized otherwise, but are passed to another function; although it seems they are not used there, if not having been initialized, MSVC complains. --- ext/snmp/snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index f2e3c5daab..c575a1befc 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -1357,7 +1357,7 @@ static int netsnmp_session_set_security(struct snmp_session *session, char *sec_ */ static void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st, int version) { - zval *oid, *value, *type; + zval *oid, *value = NULL, *type = NULL; char *a1, *a2, *a3, *a4, *a5, *a6, *a7; size_t a1_len, a2_len, a3_len, a4_len, a5_len, a6_len, a7_len; zend_bool use_orignames = 0, suffix_keys = 0; -- 2.40.0