From: foobar Date: Wed, 16 Jul 2003 06:03:46 +0000 (+0000) Subject: - Fixes some problems (debug mode only). (bug #23051 and bug #23685) X-Git-Tag: BEFORE_ARG_INFO~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82701d48c21fdda69d4c4b33f6b5a257cb2e7877;p=php - Fixes some problems (debug mode only). (bug #23051 and bug #23685) --- diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 74694f113c..5b322802aa 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -224,6 +224,8 @@ static void php_snmp_getvalue(struct variable_list *vars, zval *snmpval TSRMLS_D char buf[2048]; #endif + buf[0] = 0; + if (SNMP_G(valueretrieval) == 0) { #ifdef HAVE_NET_SNMP snprint_value(buf, sizeof(buf), vars->name, vars->name_length, vars); @@ -337,7 +339,7 @@ static void php_snmp_internal(INTERNAL_FUNCTION_PARAMETERS, int st, char buf2[2048]; int keepwalking=1; char *err; - zval *snmpval; + zval *snmpval = NULL; if (st >= 3) { /* walk */ rootlen = MAX_NAME_LEN;