From a418cdc584ec80d9060edffd4c5f3c4c163e1b74 Mon Sep 17 00:00:00 2001 From: avos Date: Mon, 4 Mar 2019 03:38:43 +0000 Subject: [PATCH] MFC r344245: snmp_hostres(3): fix a typo in sanity checks in handle_chunk() PR: 204253 Submitted by: David Binderman git-svn-id: svn://svn.freebsd.org/base/stable/10@344747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c index fa0d2bd06..5c5a41c56 100644 --- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c +++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c @@ -316,7 +316,7 @@ handle_chunk(int32_t ds_index, const char *chunk_name, off_t chunk_size) assert(chunk_name != NULL); assert(chunk_name[0] != '\0'); - if (chunk_name == NULL || chunk_name == '\0') + if (chunk_name == NULL || chunk_name[0] == '\0') return; HRDBG("ANALYZE chunk %s", chunk_name); -- 2.42.0