[kdbus] Update kdbus interface header (commit: c34e65633b4e)
[platform/upstream/glib.git] / gio / gio-querymodules.c
index 0ebc850..8dc2421 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  * Author: Alexander Larsson <alexl@redhat.com>
  */
@@ -129,8 +127,6 @@ main (gint   argc,
 {
   int i;
 
-  g_type_init ();
-
   if (argc == 1)
     {
       g_print ("Usage: gio-querymodules <directory1> [<directory2> ...]\n");
@@ -138,6 +134,9 @@ main (gint   argc,
       return 1;
     }
 
+  /* Be defensive and ensure we're linked to GObject */
+  g_type_ensure (G_TYPE_OBJECT);
+
   for (i = 1; i < argc; i++)
     query_dir (argv[i]);