Module Name: src
Committed By: maya
Date: Fri Mar 10 17:47:20 UTC 2017
Modified Files:
src/lib/libc/net: hesiod.c
Log Message:
Drop redundant null checks.
this doesn't increase diff to upstream, the whole block differs already.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/net/hesiod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/net/hesiod.c
diff -u src/lib/libc/net/hesiod.c:1.28 src/lib/libc/net/hesiod.c:1.29
--- src/lib/libc/net/hesiod.c:1.28 Thu Sep 18 13:58:20 2014
+++ src/lib/libc/net/hesiod.c Fri Mar 10 17:47:20 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: hesiod.c,v 1.28 2014/09/18 13:58:20 christos Exp $ */
+/* $NetBSD: hesiod.c,v 1.29 2017/03/10 17:47:20 maya Exp $ */
/* Copyright (c) 1996 by Internet Software Consortium.
*
@@ -51,7 +51,7 @@ __IDSTRING(rcsid_hesiod_p_h,
"#Id: hesiod_p.h,v 1.1 1996/12/08 21:39:37 ghudson Exp #");
__IDSTRING(rcsid_hescompat_c,
"#Id: hescompat.c,v 1.1.2.1 1996/12/16 08:37:45 ghudson Exp #");
-__RCSID("$NetBSD: hesiod.c,v 1.28 2014/09/18 13:58:20 christos Exp $");
+__RCSID("$NetBSD: hesiod.c,v 1.29 2017/03/10 17:47:20 maya Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -152,10 +152,8 @@ hesiod_init(void **context)
serrno = errno;
if (ctx) {
- if (ctx->lhs)
- free(ctx->lhs);
- if (ctx->rhs)
- free(ctx->rhs);
+ free(ctx->lhs);
+ free(ctx->rhs);
free(ctx);
}
errno = serrno;