summaryrefslogtreecommitdiff
path: root/src/metaflac
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-03-05 22:19:27 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-03-06 07:42:08 +1100
commit91790ef965553fd6d76e1f51b55dc4de3b54ad4b (patch)
treed861175885072946cc2662c7a3a10f6d877c593d /src/metaflac
parent05609d5b4b02e87c17c01a0ebb9fc2e05b799d90 (diff)
downloadflac-91790ef965553fd6d76e1f51b55dc4de3b54ad4b.tar.gz
Fix compiler warnings from new compiler flags.
Diffstat (limited to 'src/metaflac')
-rw-r--r--src/metaflac/operations_shorthand_vorbiscomment.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/metaflac/operations_shorthand_vorbiscomment.c b/src/metaflac/operations_shorthand_vorbiscomment.c
index 5233832b..a8d5cd1a 100644
--- a/src/metaflac/operations_shorthand_vorbiscomment.c
+++ b/src/metaflac/operations_shorthand_vorbiscomment.c
@@ -302,8 +302,7 @@ FLAC__bool import_vc_from(const char *filename, FLAC__StreamMetadata *block, con
}
ret = true;
- while(ret && !feof(f)) {
- fgets(line, sizeof(line), f);
+ while(ret && !feof(f) && fgets(line, sizeof(line), f) != NULL) {
if(!feof(f)) {
char *p = strchr(line, '\n');
if(0 == p) {