[dahdi-commits] jpeeler: tools/trunk r4661 - /tools/trunk/dahdi_cfg.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Sat Aug 2 00:31:57 CDT 2008
Author: jpeeler
Date: Sat Aug 2 00:31:57 2008
New Revision: 4661
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4661
Log:
do not give error or even bother parsing a blank/new line
Modified:
tools/trunk/dahdi_cfg.c
Modified: tools/trunk/dahdi_cfg.c
URL: http://svn.digium.com/view/dahdi/tools/trunk/dahdi_cfg.c?view=diff&rev=4661&r1=4660&r2=4661
==============================================================================
--- tools/trunk/dahdi_cfg.c (original)
+++ tools/trunk/dahdi_cfg.c Sat Aug 2 00:31:57 2008
@@ -1404,6 +1404,9 @@
cf = fopen(filename, "r");
if (cf) {
while((buf = readline())) {
+ if (*buf == 10) /* skip new line */
+ continue;
+
if (debug & DEBUG_READER)
fprintf(stderr, "Line %d: %s\n", lineno, buf);
More information about the dahdi-commits
mailing list