diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cli/stasis_indexer/helpers.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/cli/stasis_indexer/helpers.c b/src/cli/stasis_indexer/helpers.c index 8279896..f67292f 100644 --- a/src/cli/stasis_indexer/helpers.c +++ b/src/cli/stasis_indexer/helpers.c @@ -220,6 +220,10 @@ int get_files(struct StrList **out, const char *path, const char *pattern, ...)      char userpattern[PATH_MAX] = {0};      vsprintf(userpattern, pattern, args);      va_end(args); +    if (!strlen(userpattern)) { +        userpattern[0] = '*'; +        userpattern[1] = 0; +    }      struct StrList *list = listdir(path);      if (!list) {          return -1; | 
