gobject-introspection r276 - in trunk: . giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r276 - in trunk: . giscanner
- Date: Sat, 31 May 2008 14:14:07 +0000 (UTC)
Author: johan
Date: Sat May 31 14:14:07 2008
New Revision: 276
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=276&view=rev
Log:
2008-05-31 Johan Dahlin <jdahlin async com br>
* giscanner/giscannermodule.c (symbol_get_ident): Prevent
a crash when symbol->indent is NULL.
Modified:
trunk/ChangeLog
trunk/giscanner/giscannermodule.c
Modified: trunk/giscanner/giscannermodule.c
==============================================================================
--- trunk/giscanner/giscannermodule.c (original)
+++ trunk/giscanner/giscannermodule.c Sat May 31 14:14:07 2008
@@ -175,6 +175,13 @@
symbol_get_ident (PyGISourceSymbol *self,
void *context)
{
+
+ if (!self->symbol->ident)
+ {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+
return PyString_FromString (self->symbol->ident);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]