artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ea786
)
vmd(8): omit a possibly uninitialized var in a log_warnx
author
mlarkin
<mlarkin@openbsd.org>
Wed, 12 May 2021 02:24:56 +0000
(
02:24
+0000)
committer
mlarkin
<mlarkin@openbsd.org>
Wed, 12 May 2021 02:24:56 +0000
(
02:24
+0000)
Don't print 'base' since it might not be initialized in all code paths.
From James Cook
usr.sbin/vmd/config.c
patch
|
blob
|
history
diff --git
a/usr.sbin/vmd/config.c
b/usr.sbin/vmd/config.c
index
46acf78
..
83c6c1e
100644
(file)
--- a/
usr.sbin/vmd/config.c
+++ b/
usr.sbin/vmd/config.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: config.c,v 1.6
1 2021/03/29 23:37:01 dv Exp $
*/
+/* $OpenBSD: config.c,v 1.6
2 2021/05/12 02:24:56 mlarkin Exp $
*/
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@
-386,8
+386,8
@@
config_setvm(struct privsep *ps, struct vmd_vm *vm, uint32_t peerid, uid_t uid)
break;
if (n == -1) {
log_warnx("vm \"%s\" unable to read "
- "base
%s
for disk %s", vcp->vcp_name,
-
base,
vcp->vcp_disks[i]);
+ "base for disk %s", vcp->vcp_name,
+ vcp->vcp_disks[i]);
goto fail;
}
(void)strlcpy(path, base, sizeof(path));