Module Name:    src
Committed By:   martin
Date:           Tue Jun 10 13:15:18 UTC 2014

Modified Files:
        src/tests/fs/msdosfs: t_snapshot.c

Log Message:
Properly initialize arguments for the tmpfs mounted in this test.
Pointed out by pooka@.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/fs/msdosfs/t_snapshot.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/fs/msdosfs/t_snapshot.c
diff -u src/tests/fs/msdosfs/t_snapshot.c:1.2 src/tests/fs/msdosfs/t_snapshot.c:1.3
--- src/tests/fs/msdosfs/t_snapshot.c:1.2	Wed Feb  6 09:05:01 2013
+++ src/tests/fs/msdosfs/t_snapshot.c	Tue Jun 10 13:15:18 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_snapshot.c,v 1.2 2013/02/06 09:05:01 hannken Exp $	*/
+/*	$NetBSD: t_snapshot.c,v 1.3 2014/06/10 13:15:18 martin Exp $	*/
 
 #include <sys/types.h>
 #include <sys/mount.h>
@@ -40,9 +40,7 @@ mount_diskfs(const char *fspec, const ch
 static void
 begin(void)
 {
-	struct tmpfs_args targs;
-
-	targs.ta_version = TMPFS_ARGS_VERSION;
+	struct tmpfs_args targs = { .ta_version = TMPFS_ARGS_VERSION, };
 
 	if (rump_sys_mkdir("/stor", 0777) == -1)
 		atf_tc_fail_errno("mkdir /stor");

Reply via email to