![](https://seccdn.libravatar.org/avatar/eb2ff594a217acb7dff96eaafa6c848c.jpg?s=120&d=mm&r=g)
Author: kkaempf Date: Mon Apr 21 11:49:45 2008 New Revision: 9750 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9750&view=rev Log: detect and skip empty lines (bnc#381828) Modified: trunk/sat-solver/tools/repo_susetags.c Modified: trunk/sat-solver/tools/repo_susetags.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_susetags.c?rev=9750&r1=9749&r2=9750&view=diff ============================================================================== --- trunk/sat-solver/tools/repo_susetags.c (original) +++ trunk/sat-solver/tools/repo_susetags.c Mon Apr 21 11:49:45 2008 @@ -491,6 +491,7 @@ for (;;) { unsigned tag; + char *olinep; /* old line pointer */ if (linep - line + 16 > aline) /* (re-)alloc buffer */ { aline = linep - line; @@ -500,11 +501,14 @@ } if (!fgets(linep, aline - (linep - line), fp)) /* read line */ break; + olinep = linep; linep += strlen(linep); if (linep == line || linep[-1] != '\n') continue; *--linep = 0; - + if (linep == olinep) + continue; + if (intag) { /* check for multi-line value tags (+Key:/-Key:) */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org