Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/modules Avoid zero-length format string.



details:   https://anonhg.NetBSD.org/src/rev/f0f9b5522824
branches:  trunk
changeset: 778848:f0f9b5522824
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Apr 17 06:23:52 2012 +0000

description:
Avoid zero-length format string.

diffstat:

 tests/modules/t_modctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 008c135c34a9 -r f0f9b5522824 tests/modules/t_modctl.c
--- a/tests/modules/t_modctl.c  Tue Apr 17 05:18:54 2012 +0000
+++ b/tests/modules/t_modctl.c  Tue Apr 17 06:23:52 2012 +0000
@@ -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 @@
        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++)



Home | Main Index | Thread Index | Old Index