summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorjruoho <jruoho@NetBSD.org>2012-04-17 06:23:52 +0000
committerjruoho <jruoho@NetBSD.org>2012-04-17 06:23:52 +0000
commiteebd9149c31e2aac00a99c9a7df2ebed0275ce8e (patch)
tree13d3d818aadaf123de565ed27aab5e6047764de2 /tests/modules
parent5022dc9116d920aec302931b3ba6ed24714f22c1 (diff)
Avoid zero-length format string.
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/t_modctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modules/t_modctl.c b/tests/modules/t_modctl.c
index c8b04319357..131b98f417a 100644
--- a/tests/modules/t_modctl.c
+++ b/tests/modules/t_modctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_modctl.c,v 1.8 2012/03/15 02:02:23 joerg Exp $ */
+/* $NetBSD: t_modctl.c,v 1.9 2012/04/17 06:23:52 jruoho Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: t_modctl.c,v 1.8 2012/03/15 02:02:23 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: t_modctl.c,v 1.9 2012/04/17 06:23:52 jruoho Exp $");
#include <sys/module.h>
#include <sys/sysctl.h>
@@ -294,7 +294,7 @@ ATF_TC_BODY(cmd_load, tc)
char longname[MAXPATHLEN];
size_t i;
- ATF_CHECK(load(NULL, false, "") == ENOENT);
+ ATF_CHECK(load(NULL, false, " ") == ENOENT);
ATF_CHECK(load(NULL, false, "non-existent.o") == ENOENT);
for (i = 0; i < MAXPATHLEN - 1; i++)