Don't crash if no shlib is embedded
authorColin Walters <walters@src.gnome.org>
Fri, 29 Aug 2008 20:42:51 +0000 (20:42 +0000)
committerColin Walters <walters@src.gnome.org>
Fri, 29 Aug 2008 20:42:51 +0000 (20:42 +0000)
* girepository/gtypelib.c: Don't crash if no
shlib is embedded

svn path=/trunk/; revision=533

girepository/gtypelib.c

index 96d4469..e889d69 100644 (file)
@@ -1962,7 +1962,7 @@ _g_typelib_init (GTypelib *typelib)
             }
         }
      
-      if (typelib->module == NULL)
+      if (typelib->module == NULL && shlib != NULL)
         {
          GString *shlib_full;