gobject-introspection r157 - in trunk: . tools
- From: robtaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r157 - in trunk: . tools
- Date: Wed, 12 Mar 2008 01:16:24 +0000 (GMT)
Author: robtaylor
Date: Wed Mar 12 01:16:24 2008
New Revision: 157
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=157&view=rev
Log:
2008-03-12  Rob Taylor  <rob taylor codethink co uk>
	* tools/gidlcompilercontext.c: (write_compiled):
	Fix critical warning when no shlib passed to g-idl-compiler.
Modified:
   trunk/ChangeLog
   trunk/tools/gidlcompilercontext.c
Modified: trunk/tools/gidlcompilercontext.c
==============================================================================
--- trunk/tools/gidlcompilercontext.c	(original)
+++ trunk/tools/gidlcompilercontext.c	Wed Mar 12 01:16:24 2008
@@ -220,7 +220,8 @@
   fprintf (compiled, gmetadata_header);
 
   /* write the shlibs string before we write out the whole string length */
-  g_idl_compiler_write_string (ctx, shlib);
+  if (shlib)
+    g_idl_compiler_write_string (ctx, shlib);
 
   /* +1 is for the null byte right at the end of the strings section */
   fprintf (compiled, struct_header, ctx->struct_name,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]