pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/check-portability



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sat Mar 14 09:18:49 UTC 2020

Modified Files:
        pkgsrc/pkgtools/check-portability: Makefile
        pkgsrc/pkgtools/check-portability/files: check-portability.c
Added Files:
        pkgsrc/pkgtools/check-portability/files/testdata: empty-line

Log Message:
pkgtools/check-portability: update to 19.4.3

Changes since 19.4.2:

Fixed a crash when a file started with an empty line.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/pkgtools/check-portability/Makefile
cvs rdiff -u -r1.9 -r1.10 \
    pkgsrc/pkgtools/check-portability/files/check-portability.c
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/pkgtools/check-portability/files/testdata/empty-line

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/check-portability/Makefile
diff -u pkgsrc/pkgtools/check-portability/Makefile:1.6 pkgsrc/pkgtools/check-portability/Makefile:1.7
--- pkgsrc/pkgtools/check-portability/Makefile:1.6      Fri Mar 13 16:20:34 2020
+++ pkgsrc/pkgtools/check-portability/Makefile  Sat Mar 14 09:18:49 2020
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2020/03/13 16:20:34 rillig Exp $
+# $NetBSD: Makefile,v 1.7 2020/03/14 09:18:49 rillig Exp $
 
-PKGNAME=       check-portability-19.4.2
+PKGNAME=       check-portability-19.4.3
 CATEGORIES=    pkgtools
 DISTFILES=     # none
 

Index: pkgsrc/pkgtools/check-portability/files/check-portability.c
diff -u pkgsrc/pkgtools/check-portability/files/check-portability.c:1.9 pkgsrc/pkgtools/check-portability/files/check-portability.c:1.10
--- pkgsrc/pkgtools/check-portability/files/check-portability.c:1.9     Fri Mar 13 16:43:05 2020
+++ pkgsrc/pkgtools/check-portability/files/check-portability.c Sat Mar 14 09:18:49 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.9 2020/03/13 16:43:05 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.10 2020/03/14 09:18:49 rillig Exp $ */
 
 /*
  Copyright (c) 2020 Roland Illig
@@ -171,8 +171,7 @@ typedef struct {
 static cstr
 str_c(str *s)
 {
-       assert(s->data != nullptr);
-       return (cstr) { s->data, s->len };
+       return (cstr) { s->data == nullptr ? "" : s->data, s->len };
 }
 
 static void

Added files:

Index: pkgsrc/pkgtools/check-portability/files/testdata/empty-line
diff -u /dev/null pkgsrc/pkgtools/check-portability/files/testdata/empty-line:1.1
--- /dev/null   Sat Mar 14 09:18:49 2020
+++ pkgsrc/pkgtools/check-portability/files/testdata/empty-line Sat Mar 14 09:18:49 2020
@@ -0,0 +1,3 @@
+
+On 2020-03-14, check-portability crashed on files that started with an
+empty line. This file ensures that this doesn't happen again.



Home | Main Index | Thread Index | Old Index