summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-07-16 06:03:46 +0000
committerfoobar <sniper@php.net>2003-07-16 06:03:46 +0000
commit82701d48c21fdda69d4c4b33f6b5a257cb2e7877 (patch)
tree1657649a454f72e6b7cf2bd6a99f017910304d17
parent5553b6827b95064e3d984c21ae51b1c41aeb60b4 (diff)
downloadphp-git-82701d48c21fdda69d4c4b33f6b5a257cb2e7877.tar.gz
- Fixes some problems (debug mode only). (bug #23051 and bug #23685)
-rw-r--r--ext/snmp/snmp.c4
1 files changed, 3 insertions, 1 deletions
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;