Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/veriexecctl Fix error message; argv[1] could be NULL
details: https://anonhg.NetBSD.org/src/rev/3da13f7a1e26
branches: trunk
changeset: 326643:3da13f7a1e26
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Feb 09 13:40:59 2014 +0000
description:
Fix error message; argv[1] could be NULL
diffstat:
sbin/veriexecctl/veriexecctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d0834598551b -r 3da13f7a1e26 sbin/veriexecctl/veriexecctl.c
--- a/sbin/veriexecctl/veriexecctl.c Sun Feb 09 12:53:30 2014 +0000
+++ b/sbin/veriexecctl/veriexecctl.c Sun Feb 09 13:40:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: veriexecctl.c,v 1.35 2011/08/29 14:35:04 joerg Exp $ */
+/* $NetBSD: veriexecctl.c,v 1.36 2014/02/09 13:40:59 maxv Exp $ */
/*-
* Copyright 2005 Elad Efrat <elad%NetBSD.org@localhost>
@@ -245,7 +245,7 @@
lfd = open(file, O_RDONLY|O_EXLOCK, 0);
if (lfd == -1)
- err(1, "Cannot open `%s'", argv[1]);
+ err(1, "Cannot open `%s'", file);
yyin = fdopen(lfd, "r");
Home |
Main Index |
Thread Index |
Old Index