From 5f44e1ca3587a757bcc577a2941c81505cb6baf8 Mon Sep 17 00:00:00 2001 From: kevans Date: Sun, 12 Aug 2018 00:09:52 +0000 Subject: [PATCH] bectl(8): Use strcmp, rather than trying to directly compare --- sbin/bectl/bectl_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/bectl/bectl_list.c b/sbin/bectl/bectl_list.c index 0e21d00e19c..2276ac8a21a 100644 --- a/sbin/bectl/bectl_list.c +++ b/sbin/bectl/bectl_list.c @@ -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"); } -- 2.45.0