Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2018 00:09:52 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337667 - head/sbin/bectl
Message-ID:  <201808120009.w7C09qeK056955@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808120009.w7C09qeK056955>