* remove accidently committed test stuff
authorWilfried Göesgens <willi@citadel.org>
Sat, 20 Dec 2008 17:15:55 +0000 (17:15 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 20 Dec 2008 17:15:55 +0000 (17:15 +0000)
* NULL that strbuf..

webcit/gettext.c
webcit/webserver.c

index f055ee5a320f9a7742d3d57ff1ec288f302b542f..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++)
index 517a9d30799ef93c18f7a26171e52411182a0dce..4bc12f512b21910bde982cc0dd1813031d559531 100644 (file)
@@ -699,16 +699,6 @@ int main(int argc, char **argv)
        SortHash = NewHash(1, NULL);
 
        LoadZoneFiles();
-       StrBuf *foo=NewStrBufPlain("", -1);
-       StrBuf *bar = NewStrBufPlain("A", -1);
-
-       StrBufExtract_token(bar, foo, 0, '|');
-       StrBufExtract_token(bar, foo, 1, '|');
-       StrBufExtract_token(bar, foo, 2, '|');
-       StrBufExtract_token(bar, foo, 3, '|');
-       StrBufExtract_token(bar, foo, 4, '|');
-       StrBufExtract_token(bar, foo, 5, '|');
-       StrBufExtract_token(bar, foo, 6, '|');
 
 #ifdef DBG_PRINNT_HOOKS_AT_START
        dbg_PrintHash(HandlerHash, nix, NULL);