public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-sergio-catch-syscall: don't use sysinfo before checking if it is NULL
@ 2008-11-12 19:00 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2008-11-12 19:00 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergio-catch-syscall has been updated
       via  443ed1699101789baaf5f4aed9fa428421c55d6a (commit)
      from  f80eb55f788e6182342e426ee637180c7acd35c4 (commit)

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

- Log -----------------------------------------------------------------
commit 443ed1699101789baaf5f4aed9fa428421c55d6a
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Nov 12 11:48:44 2008 -0700

    don't use sysinfo before checking if it is NULL

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

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

First 500 lines of diff:
diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c
index 2febf6e..4ddb751 100644
--- a/gdb/xml-syscall.c
+++ b/gdb/xml-syscall.c
@@ -401,16 +401,17 @@ xml_list_of_syscalls (const struct syscalls_info *sysinfo)
 {
   struct syscall_desc *sysdesc;
   const char **names = NULL;
-  int nsyscalls = VEC_length(syscall_desc_p, sysinfo->syscalls);
+  int nsyscalls;
   int i;
 
   if (sysinfo == NULL)
     return NULL;
 
+  nsyscalls = VEC_length (syscall_desc_p, sysinfo->syscalls);
   names = xmalloc ((nsyscalls + 1) * sizeof (char *));
 
   for (i = 0;
-       VEC_iterate(syscall_desc_p, sysinfo->syscalls, i, sysdesc);
+       VEC_iterate (syscall_desc_p, sysinfo->syscalls, i, sysdesc);
        i++)
     names[i] = xstrdup (sysdesc->name);
 


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


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

only message in thread, other threads:[~2008-11-12 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12 19:00 [SCM] archer-sergio-catch-syscall: don't use sysinfo before checking if it is 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).