Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rpcgen CID 1062241: simplify free for coverity
details: https://anonhg.NetBSD.org/src/rev/60c05859a018
branches: trunk
changeset: 789283:60c05859a018
user: christos <christos%NetBSD.org@localhost>
date: Mon Aug 12 20:36:30 2013 +0000
description:
CID 1062241: simplify free for coverity
diffstat:
usr.bin/rpcgen/rpc_cout.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 28e358f1dd2e -r 60c05859a018 usr.bin/rpcgen/rpc_cout.c
--- a/usr.bin/rpcgen/rpc_cout.c Mon Aug 12 18:16:19 2013 +0000
+++ b/usr.bin/rpcgen/rpc_cout.c Mon Aug 12 20:36:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_cout.c,v 1.31 2013/08/11 08:03:10 dholland Exp $ */
+/* $NetBSD: rpc_cout.c,v 1.32 2013/08/12 20:36:30 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)rpc_cout.c 1.13 89/02/22 (C) 1987 SMI";
#else
-__RCSID("$NetBSD: rpc_cout.c,v 1.31 2013/08/11 08:03:10 dholland Exp $");
+__RCSID("$NetBSD: rpc_cout.c,v 1.32 2013/08/12 20:36:30 christos Exp $");
#endif
#endif
@@ -696,8 +696,7 @@
free(freeable);
freed = 1;
upp_case = "INT32";
- }
- if (strcmp(upp_case, "U_INT") == 0) {
+ } else if (strcmp(upp_case, "U_INT") == 0) {
free(freeable);
freed = 1;
upp_case = "U_INT32";
Home |
Main Index |
Thread Index |
Old Index