projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kdbus] Add new library API for common tasks on dbus/kdbus
[platform/upstream/glib.git]
/
gio
/
gio-querymodules.c
diff --git
a/gio/gio-querymodules.c
b/gio/gio-querymodules.c
index
0ebc850
..
8dc2421
100644
(file)
--- 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
* 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>
*/
*
* Author: Alexander Larsson <alexl@redhat.com>
*/
@@
-129,8
+127,6
@@
main (gint argc,
{
int i;
{
int i;
- g_type_init ();
-
if (argc == 1)
{
g_print ("Usage: gio-querymodules <directory1> [<directory2> ...]\n");
if (argc == 1)
{
g_print ("Usage: gio-querymodules <directory1> [<directory2> ...]\n");
@@
-138,6
+134,9
@@
main (gint argc,
return 1;
}
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]);
for (i = 1; i < argc; i++)
query_dir (argv[i]);