svn commit: r337667 - head/sbin/bectl

Kyle Evans kevans at FreeBSD.org
Sun Aug 12 00:09:53 UTC 2018


Author: kevans
Date: Sun Aug 12 00:09:52 2018
New Revision: 337667
URL: https://svnweb.freebsd.org/changeset/base/337667

Log:
  bectl(8): Use strcmp, rather than trying to directly compare

Modified:
  head/sbin/bectl/bectl_list.c

Modified: head/sbin/bectl/bectl_list.c
==============================================================================
--- head/sbin/bectl/bectl_list.c	Sun Aug 12 00:08:14 2018	(r337666)
+++ head/sbin/bectl/bectl_list.c	Sun Aug 12 00:09:52 2018	(r337667)
@@ -320,7 +320,7 @@ print_headers(nvlist_t *props, struct printc *pc)
 	 * will produce quite a bit of input.  Throw an extra blank line after
 	 * the header to make it look nicer.
 	 */
-	if (chosen_be_header != HEADER_BE)
+	if (strcmp(chosen_be_header, HEADER_BE) != 0)
 		printf("\n");
 }
 


More information about the svn-src-head mailing list