patches/glib-08-typedetect.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 13621 9bf41a45386d
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13621
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     1
--- glib-2.17.6/gobject/gtype.c.origi	2008-08-05 01:21:30.000000000 +0800
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     2
+++ glib-2.17.6/gobject/gtype.c	2008-09-12 16:20:23.731146000 +0800
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     3
@@ -589,7 +589,7 @@
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     4
     {
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     5
       TypeNode *node = lookup_type_node_I (type);
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     6
       
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     7
-      return node ? NODE_NAME (node) : "<unknown>";
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     8
+      return node ? (NODE_NAME (node) == NULL ? "<unknown>" : NODE_NAME (node)) : "<unknown>";
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     9
     }
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    10
   else
9bf41a45386d 2008-09-17 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    11
     return "<invalid>";