public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-ambiguous-linespec: move declaration to scope where cleanups are called bug found by Jan
@ 2011-11-14 15:16 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-11-14 15:16 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-ambiguous-linespec has been updated
       via  d5da9b5cdf9809356bb946e9dd8e918450cd4a70 (commit)
      from  11f4cc55bc0b94755222815d73afcef9f67862e3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d5da9b5cdf9809356bb946e9dd8e918450cd4a70
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Nov 14 08:15:23 2011 -0700

    move declaration to scope where cleanups are called
    bug found by Jan

-----------------------------------------------------------------------

Summary of changes:
 gdb/linespec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 3397c5a..f14c745 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1169,6 +1169,7 @@ decode_line_full (char **argptr, int funfirstline,
   struct linespec_state state;
   struct cleanup *cleanups;
   char *arg_start = *argptr;
+  VEC (const_char_ptr) *filters = NULL;
 
   gdb_assert (canonical != NULL);
   /* The filter only makes sense for 'all'.  */
@@ -1218,8 +1219,6 @@ decode_line_full (char **argptr, int funfirstline,
     {
       if (filter != NULL)
 	{
-	  VEC (const_char_ptr) *filters = NULL;
-
 	  make_cleanup (VEC_cleanup (const_char_ptr), &filters);
 	  VEC_safe_push (const_char_ptr, filters, filter);
 	  filter_results (&state, &result, filters);


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-14 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-14 15:16 [SCM] archer-tromey-ambiguous-linespec: move declaration to scope where cleanups are called bug found by Jan tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).