Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs Don't pass garbage to parsedate, but do use ...
details: https://anonhg.NetBSD.org/src/rev/50436deddc70
branches: trunk
changeset: 341887:50436deddc70
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Nov 27 15:10:32 2015 +0000
description:
Don't pass garbage to parsedate, but do use the return value.
diffstat:
usr.sbin/makefs/makefs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 15a3d34220ae -r 50436deddc70 usr.sbin/makefs/makefs.c
--- a/usr.sbin/makefs/makefs.c Fri Nov 27 13:59:40 2015 +0000
+++ b/usr.sbin/makefs/makefs.c Fri Nov 27 15:10:32 2015 +0000
@@ -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 @@
#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;
Home |
Main Index |
Thread Index |
Old Index