[GRASS-dev] G_gettext initialization

Brad Douglas rez at touchofmadness.com
Thu Nov 16 02:13:09 EST 2006

In G_gettext (lib/gis/locale.c), I ran across this code:

char *
G_gettext(const char *package, const char *msgid)
#if defined(HAVE_LIBINTL_H) && defined(USE_NLS)
    static char now_bound[4096];
    static int initialized;

    if (!initialized)
        initialized = 1;

Is there any particular reason that 'initialized' is not actually
initialized?  Is there a reason for this?

Brad Douglas <rez touchofmadness com>                    KB8UYR/6
Address: 37.493,-121.924 / WGS84    National Map Corps #TNMC-3785

More information about the grass-dev mailing list