Module Name: src
Committed By: mrg
Date: Mon Sep 7 00:28:44 UTC 2020
Modified Files:
src/tests/lib/libc/db: t_db_hash_seq.c
Log Message:
don't pass NULL to printf(), but use "<memory>" to signify this
test is operating on an in-memory only database.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/db/t_db_hash_seq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/db/t_db_hash_seq.c
diff -u src/tests/lib/libc/db/t_db_hash_seq.c:1.3 src/tests/lib/libc/db/t_db_hash_seq.c:1.4
--- src/tests/lib/libc/db/t_db_hash_seq.c:1.3 Tue Jul 9 16:24:01 2019
+++ src/tests/lib/libc/db/t_db_hash_seq.c Mon Sep 7 00:28:44 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: t_db_hash_seq.c,v 1.3 2019/07/09 16:24:01 maya Exp $ */
+/* $NetBSD: t_db_hash_seq.c,v 1.4 2020/09/07 00:28:44 mrg Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_db_hash_seq.c,v 1.3 2019/07/09 16:24:01 maya Exp $");
+__RCSID("$NetBSD: t_db_hash_seq.c,v 1.4 2020/09/07 00:28:44 mrg Exp $");
#include <sys/types.h>
#include <sys/socket.h>
@@ -107,7 +107,8 @@ state_open(const char *dbname, int flags
if (db == NULL) {
if (errno == ENOENT && (flags & O_CREAT) == 0)
return NULL;
- DO_ERR("%s: can't open `%s'", __func__, dbname);
+ DO_ERR("%s: can't open `%s'", __func__,
+ dbname ? dbname : "<memory>");
}
return db;
}