[Freeswitch-trunk] [commit] r6705 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Dec 12 16:12:10 EST 2007


Author: anthm
Date: Wed Dec 12 16:12:10 2007
New Revision: 6705

Modified:
   freeswitch/trunk/src/switch_apr.c

Log:
gimmie a break

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Wed Dec 12 16:12:10 2007
@@ -502,9 +502,11 @@
 	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 @@
 		if (name) {
 			switch_copy_string(buf, name, len);
 			fname = buf;
+			break;
 		} else {
 			continue;
 		}



More information about the Freeswitch-trunk mailing list