This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] xml-syscall.c, syscall_start_syscall, assert name is not null.


checked in.

2011-03-04  Michael Snyder  <msnyder@vmware.com>

	* xml-syscall.c (syscall_start_syscall): Assert name is non null.

Index: xml-syscall.c
===================================================================
RCS file: /cvs/src/src/gdb/xml-syscall.c,v
retrieving revision 1.10
diff -u -p -r1.10 xml-syscall.c
--- xml-syscall.c	25 Jan 2011 09:49:59 -0000	1.10
+++ xml-syscall.c	4 Mar 2011 21:53:46 -0000
@@ -195,6 +195,7 @@ syscall_start_syscall (struct gdb_xml_pa
                         _("Unknown attribute name '%s'."), attrs[i].name);
     }
 
+  gdb_assert (name);
   syscall_create_syscall_desc (data->sysinfo, name, number);
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]