Module Name:    src
Committed By:   christos
Date:           Mon Aug 12 20:36:30 UTC 2013

Modified Files:
        src/usr.bin/rpcgen: rpc_cout.c

Log Message:
CID 1062241: simplify free for coverity


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.bin/rpcgen/rpc_cout.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.bin/rpcgen/rpc_cout.c
diff -u src/usr.bin/rpcgen/rpc_cout.c:1.31 src/usr.bin/rpcgen/rpc_cout.c:1.32
--- src/usr.bin/rpcgen/rpc_cout.c:1.31	Sun Aug 11 04:03:10 2013
+++ src/usr.bin/rpcgen/rpc_cout.c	Mon Aug 12 16:36:30 2013
@@ -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 @@ emit_single_in_line(declaration *decl, i
 		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";

Reply via email to