Skip to content

Commit

Permalink
Fixes Issue #33 - Config file line not read if no trailing CRLF
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Kelly committed Apr 11, 2019
1 parent 96a135c commit 4c3a4d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion raveloxmidi/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE(raveloxmidi, 0.6.0)
AM_INIT_AUTOMAKE(raveloxmidi, 0.6.1)
AC_CONFIG_HEADERS([config.h])

AC_GNU_SOURCE
Expand Down
2 changes: 1 addition & 1 deletion raveloxmidi/src/raveloxmidi_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static void config_load_file( char *filename )
char *return_value = NULL;
return_value = fgets( config_line , MAX_CONFIG_LINE, config_file );

if( feof( config_file) ) break;
if( feof( config_file) && ! return_value ) break;

if( ! return_value )
{
Expand Down

0 comments on commit 4c3a4d0

Please sign in to comment.