Module Name: src
Committed By: jruoho
Date: Tue Apr 17 06:23:52 UTC 2012
Modified Files:
src/tests/modules: t_modctl.c
Log Message:
Avoid zero-length format string.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/modules/t_modctl.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/modules/t_modctl.c
diff -u src/tests/modules/t_modctl.c:1.8 src/tests/modules/t_modctl.c:1.9
--- src/tests/modules/t_modctl.c:1.8 Thu Mar 15 02:02:23 2012
+++ src/tests/modules/t_modctl.c Tue Apr 17 06:23:52 2012
@@ -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++)