Add missing static pointed out by Michael Meeks.
authorOwen Taylor <otaylor@redhat.com>
Wed, 18 Apr 2001 21:37:25 +0000 (21:37 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 18 Apr 2001 21:37:25 +0000 (21:37 +0000)
Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>

* gutils.c (_glib_gettext): Add missing static pointed
out by Michael Meeks.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutils.c
gutils.c

index f331814..32425b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index f331814..32425b4 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * MAINTAINERS: Removed. Keeping README, README.cvs-commits
index 4b9f69f..da35b73 100644 (file)
@@ -1122,7 +1122,7 @@ g_get_codeset (void)
 G_CONST_RETURN gchar *
 _glib_gettext (const gchar *str)
 {
-  gboolean _glib_gettext_initialized = FALSE;
+  static gboolean _glib_gettext_initialized = FALSE;
 
   if (!_glib_gettext_initialized)
     {
index 4b9f69f..da35b73 100644 (file)
--- a/gutils.c
+++ b/gutils.c
@@ -1122,7 +1122,7 @@ g_get_codeset (void)
 G_CONST_RETURN gchar *
 _glib_gettext (const gchar *str)
 {
-  gboolean _glib_gettext_initialized = FALSE;
+  static gboolean _glib_gettext_initialized = FALSE;
 
   if (!_glib_gettext_initialized)
     {