18 lines
862 B
Diff
18 lines
862 B
Diff
diff --git a/src/core/platform_fs.cpp b/src/core/platform_fs.cpp
|
|
index 95e73534b487ee5b38a79b3ac4cda151292ca781..1a986fd5ec8785ed42ec075ea52b11d30734f659 100644
|
|
--- a/src/core/platform_fs.cpp
|
|
+++ b/src/core/platform_fs.cpp
|
|
@@ -256,8 +256,10 @@ void getFileNames ( const string &directory,const string &wildcard, vector<strin
|
|
if ( errno ) return;
|
|
|
|
// sort the current entries for fileName
|
|
- if ( firstEntry < fileName.size() )
|
|
- sort ( &fileName[firstEntry], &fileName[fileName.size() ] );
|
|
+ // https://gitlab.com/saalen/highlight/issues/84
|
|
+ // coredump with GLIBCXX_ASSERTIONS compiler option, use iterators if sort is needed
|
|
+ //if ( firstEntry < fileName.size() )
|
|
+ // sort ( &fileName[firstEntry], &fileName[fileName.size() ] );
|
|
|
|
// recurse into sub directories
|
|
// if not doing recursive, subDirectory is empty
|