cleanup EINTR checking in tag.c
git-svn-id: https://svn.musicpd.org/mpd/trunk@1127 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
28e29a29e9
commit
fbcb995a81
@ -310,11 +310,10 @@ MpdTag * oggTagDup(char * utf8file) {
|
|||||||
char * s1;
|
char * s1;
|
||||||
char * s2;
|
char * s2;
|
||||||
|
|
||||||
while(!(fp = fopen(rmp2amp(utf8ToFsCharset(utf8file)),"r"))
|
fp = fopen(rmp2amp(utf8ToFsCharset(utf8file)),"r");
|
||||||
&& errno==EINTR);
|
|
||||||
if(!fp) return NULL;
|
if(!fp) return NULL;
|
||||||
if(ov_open(fp,&vf,NULL,0)<0) {
|
if(ov_open(fp,&vf,NULL,0)<0) {
|
||||||
while(fclose(fp) && errno==EINTR);
|
fclose(fp);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user