mp3utils.c (mp3_skiptags): minor return code tidy-up.
authorOzkan Sezer
Thu, 12 Dec 2019 17:28:10 +0300
changeset 1078092f7e1f97b9
parent 1077 38ae3fb1962a
child 1083 7a3b49dbf90f
mp3utils.c (mp3_skiptags): minor return code tidy-up.
src/codecs/mp3utils.c
     1.1 --- a/src/codecs/mp3utils.c	Wed Dec 11 22:20:02 2019 +0300
     1.2 +++ b/src/codecs/mp3utils.c	Thu Dec 12 17:28:10 2019 +0300
     1.3 @@ -365,10 +365,10 @@
     1.4          }
     1.5      }
     1.6  
     1.7 -    rc = 0;
     1.8 +    rc = (fil->length > 0)? 0 : -1;
     1.9      fail:
    1.10      MP3_RWseek(fil, 0, RW_SEEK_SET);
    1.11 -    return (fil->length > 0)? rc : -1;
    1.12 +    return rc;
    1.13  }
    1.14  #endif /* MUSIC_MP3_????? */
    1.15