Module Name:    src
Committed By:   martin
Date:           Thu Apr 14 15:51:29 UTC 2022

Modified Files:
        src/distrib/utils/libhack: fmtcheck.c

Log Message:
Make this no-op variant of fmtcheck() compatible with the libc version
when called with NULL as first argument.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/distrib/utils/libhack/fmtcheck.c

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

Modified files:

Index: src/distrib/utils/libhack/fmtcheck.c
diff -u src/distrib/utils/libhack/fmtcheck.c:1.1 src/distrib/utils/libhack/fmtcheck.c:1.2
--- src/distrib/utils/libhack/fmtcheck.c:1.1	Sat Jun 22 22:50:39 2019
+++ src/distrib/utils/libhack/fmtcheck.c	Thu Apr 14 15:51:29 2022
@@ -1,7 +1,7 @@
-/*	$NetBSD: fmtcheck.c,v 1.1 2019/06/22 22:50:39 christos Exp $	*/
+/*	$NetBSD: fmtcheck.c,v 1.2 2022/04/14 15:51:29 martin Exp $	*/
 #include <stdio.h>
 const char *
 fmtcheck(const char *a, const char *b)
 {
-	return a;
+	return a ? a : b;
 }

Reply via email to