[asterisk-scf-commits] asterisk-scf/integration/log4scf.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Sep 22 09:19:43 CDT 2010


branch "master" has been updated
       via  acd159b69547a9b446e163af06c0fdc7a4d51fb7 (commit)
      from  ad4240ebad303c6089d8d5ef3376b16027cd9dc7 (commit)

Summary of changes:
 client/src/LoggerFactory.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit acd159b69547a9b446e163af06c0fdc7a4d51fb7
Author: David M. Lee <dlee at digium.com>
Date:   Wed Sep 22 09:17:28 2010 -0500

    Fixed bug on Linux.  string.split() works differently on an empty string.

diff --git a/client/src/LoggerFactory.cpp b/client/src/LoggerFactory.cpp
index 5ea4689..7e52698 100644
--- a/client/src/LoggerFactory.cpp
+++ b/client/src/LoggerFactory.cpp
@@ -29,7 +29,10 @@ LoggerFactory::LoggerFactory(LogOut &out) :
 Logger &LoggerFactory::getLogger(std::string const &source)
 {
    std::vector<std::string> path;
-   split(path, source, std::bind1st(std::equal_to<char>(), '.'));
+   if (!source.empty())
+   {
+      split(path, source, std::bind1st(std::equal_to<char>(), '.'));
+   }
 
    Logger *logger = &root;
    for (std::vector<std::string>::iterator i = path.begin(); i != path.end(); ++i)

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/log4scf.git



More information about the asterisk-scf-commits mailing list