diff options
| author | martin <martin@NetBSD.org> | 2022-04-14 15:51:29 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2022-04-14 15:51:29 +0000 |
| commit | 6f49a648d4548cc5fc86f0e82500f37f1b20ea54 (patch) | |
| tree | a8a5b050a673834c3b1f25bf756d30eecab4e108 /distrib/utils/libhack/fmtcheck.c | |
| parent | 8da5a8679f232cbbd0299672e43b51b1b66cd037 (diff) | |
Make this no-op variant of fmtcheck() compatible with the libc version
when called with NULL as first argument.
Diffstat (limited to 'distrib/utils/libhack/fmtcheck.c')
| -rw-r--r-- | distrib/utils/libhack/fmtcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/utils/libhack/fmtcheck.c b/distrib/utils/libhack/fmtcheck.c index d8940828910..079cb113200 100644 --- a/distrib/utils/libhack/fmtcheck.c +++ b/distrib/utils/libhack/fmtcheck.c @@ -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; } |
