public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-ambiguous-linespec: don't try to strdup NULL
@ 2011-08-25 18:16 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-08-25 18:16 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-ambiguous-linespec has been updated
       via  ca6ca903fc2de56be887695a2962e4b5f0289173 (commit)
      from  6bbd36b44ecd5c6d48e774df0f1d3d00a3a82a39 (commit)

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

- Log -----------------------------------------------------------------
commit ca6ca903fc2de56be887695a2962e4b5f0289173
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Aug 25 12:16:10 2011 -0600

    don't try to strdup NULL

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

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

First 500 lines of diff:
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 77fb092..94d7220 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -7446,7 +7446,7 @@ create_breakpoints_sal (struct gdbarch *gdbarch,
   for (i = 0; VEC_iterate (linespec_sals, canonical->sals, i, lsal); ++i)
     {
       char *addr_string = xstrdup (canonical->addr_string);
-      char *filter_string = xstrdup (lsal->canonical);
+      char *filter_string = lsal->canonical ? xstrdup (lsal->canonical) : NULL;
       struct cleanup *inner = make_cleanup (xfree, addr_string);
 
       make_cleanup (xfree, filter_string);


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


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

only message in thread, other threads:[~2011-08-25 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25 18:16 [SCM] archer-tromey-ambiguous-linespec: don't try to strdup NULL 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).