From 29d401ff38236d1e7090e15893d6d1e0ae2517f7 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Thu, 6 Mar 2014 16:31:31 +0100 Subject: [PATCH] Fixed #3098 (false negative: unitialized variable being passed to strcoll()) --- cfg/std.cfg | 1 + test/testuninitvar.cpp | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cfg/std.cfg b/cfg/std.cfg index b52971780..3b48d78e3 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -38,6 +38,7 @@ false false + false false false false diff --git a/test/testuninitvar.cpp b/test/testuninitvar.cpp index 991ca6123..4d9533344 100644 --- a/test/testuninitvar.cpp +++ b/test/testuninitvar.cpp @@ -74,12 +74,8 @@ private: errout.str(""); Settings settings; - - const char cfg[] = "" - "" - " " - ""; - settings.library.loadxmldata(cfg,sizeof(cfg)); + LOAD_LIB("std.cfg"); + settings.library = _lib; // Tokenize.. Tokenizer tokenizer(&settings, this);