From 9d0fa50eed0ccfb36d10b0d7315c88cb55e960d7 Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Tue, 17 May 2016 00:27:18 +0000 Subject: [PATCH] Use != 0 to be clear --- usr.bin/kdump/kdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 62e5f17914b5..439b90c27eea 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -298,7 +298,7 @@ main(int argc, char *argv[]) m = malloc(size = 1025); if (m == NULL) errx(1, "%s", strerror(ENOMEM)); - if (strcmp(tracefile, "-")) + if (strcmp(tracefile, "-") != 0) if (!freopen(tracefile, "r", stdin)) err(1, "%s", tracefile);