summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2006-01-31 14:59:07 +0000
committerHartmut Brandt <harti@FreeBSD.org>2006-01-31 14:59:07 +0000
commit3dc7424242553c18368d96ed8cccc0407134cd04 (patch)
tree4e273362a687c774ceaf575ef23e73e350396193 /contrib
parenta7ee7a7d6aa723ce89a6853d54056dfec8d403d9 (diff)
parent5105400329ff9a651aed2792f4a91c566f4bf858 (diff)
downloadsrc-test2-3dc7424242553c18368d96ed8cccc0407134cd04.tar.gz
src-test2-3dc7424242553c18368d96ed8cccc0407134cd04.zip
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bsnmp/snmpd/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/bsnmp/snmpd/main.c b/contrib/bsnmp/snmpd/main.c
index 02ae93e2e838..32ccc45d50cf 100644
--- a/contrib/bsnmp/snmpd/main.c
+++ b/contrib/bsnmp/snmpd/main.c
@@ -1386,7 +1386,9 @@ main(int argc, char *argv[])
if (value == NULL)
syslog(LOG_ERR,
"no value for 'trace'");
- snmp_trace = strtoul(value, NULL, 0);
+ else
+ snmp_trace =
+ strtoul(value, NULL, 0);
break;
case -1: