Module Name:    src
Committed By:   joerg
Date:           Fri Nov 27 15:10:32 UTC 2015

Modified Files:
        src/usr.sbin/makefs: makefs.c

Log Message:
Don't pass garbage to parsedate, but do use the return value.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.sbin/makefs/makefs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makefs/makefs.c
diff -u src/usr.sbin/makefs/makefs.c:1.52 src/usr.sbin/makefs/makefs.c:1.53
--- src/usr.sbin/makefs/makefs.c:1.52	Wed Nov 25 16:32:20 2015
+++ src/usr.sbin/makefs/makefs.c	Fri Nov 27 15:10:32 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: makefs.c,v 1.52 2015/11/25 16:32:20 wiz Exp $	*/
+/*	$NetBSD: makefs.c,v 1.53 2015/11/27 15:10:32 joerg Exp $	*/
 
 /*
  * Copyright (c) 2001-2003 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: makefs.c,v 1.52 2015/11/25 16:32:20 wiz Exp $");
+__RCSID("$NetBSD: makefs.c,v 1.53 2015/11/27 15:10:32 joerg Exp $");
 #endif	/* !__lint */
 
 #include <assert.h>
@@ -434,7 +434,7 @@ get_tstamp(const char *b, struct stat *s
 
 #ifndef HAVE_NBTOOL_CONFIG_H
 	errno = 0;
-	if (parsedate(b, &when, NULL) == -1 && errno != 0)
+	if ((when = parsedate(b, NULL, NULL)) == -1 && errno != 0)
 #endif
 	{
 		errno = 0;

Reply via email to