From 64ff415ed33a733f9a297b1526403bfb8f391c63 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 23 Mar 2010 12:34:58 +0200 Subject: Semantic graph and parsing code Currently covers/handles namespace, class definitions (including bases and data members), and typedefs in namespace-scopes. --- odb/odb.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/odb.cxx') diff --git a/odb/odb.cxx b/odb/odb.cxx index fe6a0e4..1f8d516 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -253,7 +253,7 @@ plugin_path (string const& drv) for (size_t b (0), e (paths.find (':')); b != string::npos;) { - string p (paths, b, e - b); + string p (paths, b, e != string::npos ? e - b : e); // Empty path (i.e., a double colon or a colon at the beginning // or end of PATH) means search in the current dirrectory. -- cgit v1.1