gimmie a break
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6705 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3eb3671fb2
commit
2ff5e3ec40
|
@ -502,9 +502,11 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu
|
|||
const char *name;
|
||||
|
||||
while (apr_dir_read(&(thedir->finfo), finfo_flags, thedir->dir_handle) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
if (thedir->finfo.filetype != APR_REG) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(name = thedir->finfo.fname)) {
|
||||
name = thedir->finfo.name;
|
||||
}
|
||||
|
@ -516,6 +518,7 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu
|
|||
if (name) {
|
||||
switch_copy_string(buf, name, len);
|
||||
fname = buf;
|
||||
break;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue