Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/am-utils/dist/hlfsd remove an always true test ...
details: https://anonhg.NetBSD.org/src/rev/566f0cbfe916
branches: trunk
changeset: 766412:566f0cbfe916
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 22 03:58:24 2011 +0000
description:
remove an always true test found by GCC 4.5.3.
diffstat:
external/bsd/am-utils/dist/hlfsd/homedir.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 22d98794a89d -r 566f0cbfe916 external/bsd/am-utils/dist/hlfsd/homedir.c
--- a/external/bsd/am-utils/dist/hlfsd/homedir.c Wed Jun 22 03:57:46 2011 +0000
+++ b/external/bsd/am-utils/dist/hlfsd/homedir.c Wed Jun 22 03:58:24 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: homedir.c,v 1.1.1.2 2009/03/20 20:26:55 christos Exp $ */
+/* $NetBSD: homedir.c,v 1.2 2011/06/22 03:58:24 mrg Exp $ */
/*
* Copyright (c) 1997-2009 Erez Zadok
@@ -498,7 +498,7 @@
buf[0] = '\0';
fgets(buf, 256, passwd_fp);
passwd_line++;
- if (!buf || buf[0] == '\0')
+ if (buf[0] == '\0')
goto readent;
/* read user name */
Home |
Main Index |
Thread Index |
Old Index