pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/check-portability/files pkgtools/check-portab...
details: https://anonhg.NetBSD.org/pkgsrc/rev/62bc90897cde
branches: trunk
changeset: 412942:62bc90897cde
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Mar 13 16:43:05 2020 +0000
description:
pkgtools/check-portability: elimitate common subexpression
diffstat:
pkgtools/check-portability/files/check-portability.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r dc975c384708 -r 62bc90897cde pkgtools/check-portability/files/check-portability.c
--- a/pkgtools/check-portability/files/check-portability.c Fri Mar 13 16:26:06 2020 +0000
+++ b/pkgtools/check-portability/files/check-portability.c Fri Mar 13 16:43:05 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.8 2020/03/13 16:20:34 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.9 2020/03/13 16:43:05 rillig Exp $ */
/*
Copyright (c) 2020 Roland Illig
@@ -526,7 +526,7 @@
while (str_read_line(&line, f)) {
cstr cline = str_c(&line);
- if (cstr_contains_char(str_c(&line), '\0'))
+ if (cstr_contains_char(cline, '\0'))
break;
lineno++;
str_charptr(&line);
Home |
Main Index |
Thread Index |
Old Index