Fix compiler warning "variable set but not used".

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2012-04-09 12:36:23 +00:00
parent 60d448d150
commit dfe7fafd92
1 changed files with 2 additions and 2 deletions

View File

@ -1307,10 +1307,10 @@ int Fl_Preferences::Node::write( FILE *f ) {
char *src = entry_[i].value; char *src = entry_[i].value;
if ( src ) { // hack it into smaller pieces if needed if ( src ) { // hack it into smaller pieces if needed
fprintf( f, "%s:", entry_[i].name ); fprintf( f, "%s:", entry_[i].name );
size_t cnt, written; size_t cnt, written = 0;
for ( cnt = 0; cnt < 60; cnt++ ) for ( cnt = 0; cnt < 60; cnt++ )
if ( src[cnt]==0 ) break; if ( src[cnt]==0 ) break;
written = fwrite( src, cnt, 1, f ); written += fwrite( src, cnt, 1, f );
fprintf( f, "\n" ); fprintf( f, "\n" );
src += cnt; src += cnt;
for (;*src;) { for (;*src;) {