changeset 88:0120dac53a69

d_name can't be NULL; it's an array
author Chris Cannam
date Thu, 10 Jan 2019 15:44:39 +0000
parents 39c5f644152d
children f92587bedb2c
files PyPlugScanner.cpp
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/PyPlugScanner.cpp	Thu Jan 10 15:42:05 2019 +0000
+++ b/PyPlugScanner.cpp	Thu Jan 10 15:44:39 2019 +0000
@@ -214,15 +214,11 @@
             
     struct dirent *e = 0;
     while ((e = readdir(d))) {
- 
-        if (!e->d_name) continue;
-       
         size_t len = strlen(e->d_name);
         if (len < extlen + 2 ||
             e->d_name + len - extlen - 1 != "." + extension) {
             continue;
         }
-		//cerr << "pyscripts: " << e->d_name <<  endl;
         files.push_back(e->d_name);
     }