Commit fbcb995a authored by Warren Dukes's avatar Warren Dukes

cleanup EINTR checking in tag.c

git-svn-id: https://svn.musicpd.org/mpd/trunk@1127 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 28e29a29
......@@ -310,11 +310,10 @@ MpdTag * oggTagDup(char * utf8file) {
char * s1;
char * s2;
while(!(fp = fopen(rmp2amp(utf8ToFsCharset(utf8file)),"r"))
&& errno==EINTR);
fp = fopen(rmp2amp(utf8ToFsCharset(utf8file)),"r");
if(!fp) return NULL;
if(ov_open(fp,&vf,NULL,0)<0) {
while(fclose(fp) && errno==EINTR);
fclose(fp);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment