Commit 535e7983 by Richard Stallman

(save_def_or_dec): Correct typo in change of Nov 23.

(save_def_or_dec): Correct typo in change of Nov 23.  Make
sure pointers within def_dec_p are valid before it is freed.

From-SVN: r6156
parent e287fd6e
......@@ -1715,8 +1715,12 @@ save_def_or_dec (l, is_syscalls)
p--;
#ifndef UNPROTOIZE
def_dec_p->f_list_chain = NULL;
#endif /* !defined (UNPROTOIZE) */
while (p != ansi_start && (p[-1] == ' ' || p[-1] == '\t')) p--;
if (p[-1] != ')')
if (*p != ')')
{
free_def_dec (def_dec_p);
return;
......@@ -1728,10 +1732,6 @@ save_def_or_dec (l, is_syscalls)
def_dec_p->f_list_count = 0;
#ifndef UNPROTOIZE
def_dec_p->f_list_chain = NULL;
#endif /* !defined (UNPROTOIZE) */
for (;;)
{
const char *left_paren_p = find_corresponding_lparen (p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment