svn commit: r348833 - head/usr.bin/tail
Mariusz Zaborski
oshogbo at FreeBSD.org
Sun Jun 9 11:21:30 UTC 2019
Author: oshogbo
Date: Sun Jun 9 11:21:29 2019
New Revision: 348833
URL: https://svnweb.freebsd.org/changeset/base/348833
Log:
tail: style nits
Modified:
head/usr.bin/tail/tail.c
Modified: head/usr.bin/tail/tail.c
==============================================================================
--- head/usr.bin/tail/tail.c Sun Jun 9 08:22:38 2019 (r348832)
+++ head/usr.bin/tail/tail.c Sun Jun 9 11:21:29 2019 (r348833)
@@ -212,7 +212,8 @@ main(int argc, char *argv[])
file->file_name = strdup(fn);
if (! file->file_name)
errx(1, "Couldn't malloc space for file name.");
- if ((file->fp = fileargs_fopen(fa, file->file_name, "r")) == NULL ||
+ file->fp = fileargs_fopen(fa, file->file_name, "r");
+ if (file->fp == NULL ||
fstat(fileno(file->fp), &file->st)) {
if (file->fp != NULL) {
fclose(file->fp);
More information about the svn-src-all
mailing list