X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgio-querymodules.c;h=8dc2421a3666b2db5481a3d30bae305cf861c2dc;hb=7e5e3e142f856ac80e83a9a5110b51aa4b5b0821;hp=0ebc85089967f799c6640f35359cf0705ef53887;hpb=3fa735848782735a7ccff3abba39c53388592588;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gio-querymodules.c b/gio/gio-querymodules.c index 0ebc850..8dc2421 100644 --- a/gio/gio-querymodules.c +++ b/gio/gio-querymodules.c @@ -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 . * * Author: Alexander Larsson */ @@ -129,8 +127,6 @@ main (gint argc, { int i; - g_type_init (); - if (argc == 1) { g_print ("Usage: gio-querymodules [ ...]\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]);