diff options
Diffstat (limited to 'odb/odb.cxx')
-rw-r--r-- | odb/odb.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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. |