]> code.citadel.org Git - citadel.git/blobdiff - webcit/gettext.c
* remove accidently committed test stuff
[citadel.git] / webcit / gettext.c
index d504a6eaf2895acc904ddc2084f15333993c3846..fc2cc6000f33a1ea0dffd2f2e342ef5581bc7c4c 100644 (file)
@@ -64,7 +64,7 @@ void httplang_to_locale(StrBuf *LocaleString)
        int nBest;
        int nParts;
        StrBuf *Buf = NULL;
-       StrBuf *SBuf;
+       StrBuf *SBuf = NULL;
        
        nParts=StrBufNum_tokens(LocaleString,',');
        for (i=0; ((i<nParts)&&(i<SEARCH_LANG)); i++)
@@ -251,7 +251,7 @@ void set_selected_language(const char *lang) {
  */
 void go_selected_language(void) {
 #ifdef HAVE_USELOCALE
-       struct wcsession *WCC = WC;
+       wcsession *WCC = WC;
        if (WCC->selected_language < 0) return;
        uselocale(wc_locales[WCC->selected_language]);  /** switch locales */
        textdomain(textdomain(NULL));                   /** clear the cache */