Author: avos
Date: Mon Mar  4 03:38:43 2019
New Revision: 344747
URL: https://svnweb.freebsd.org/changeset/base/344747

Log:
  MFC r344245:
  snmp_hostres(3): fix a typo in sanity checks in handle_chunk()
  
  PR:           204253
  Submitted by: David Binderman <dcb...@hotmail.com>

Modified:
  stable/10/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c
  stable/12/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c
Directory Properties:
  stable/11/   (props changed)
  stable/12/   (props changed)

Modified: stable/10/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c
==============================================================================
--- stable/10/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c      
Mon Mar  4 03:30:39 2019        (r344746)
+++ stable/10/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c      
Mon Mar  4 03:38:43 2019        (r344747)
@@ -316,7 +316,7 @@ handle_chunk(int32_t ds_index, const char *chunk_name,
 
        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);
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to