From e2af5db575e71bb3a7d5a75be9144d0fdbc2ba60 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 5 May 2004 04:24:57 +0000 Subject: [PATCH] uninitialized-variable-20040504 Do not assign reference to declaration in cases which declaration is not assigned a value. --- src/rxgen/rpc_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rxgen/rpc_parse.c b/src/rxgen/rpc_parse.c index 3d2d7b3..63a47fa 100644 --- a/src/rxgen/rpc_parse.c +++ b/src/rxgen/rpc_parse.c @@ -902,7 +902,8 @@ analyze_ProcParams(definition * defp, token * tokp) Proc_listp = &Proc_list->next; decls = ALLOC(decl_list); memset((char *)decls, 0, sizeof(decl_list)); - decls->decl = dec; + if (tokp->kind != TOK_RPAREN) + decls->decl = dec; *tailp = decls; tailp = &decls->next; } while (tokp->kind != TOK_RPAREN); -- 1.9.4