libdraw: remove unneeded check (thanks BurnZeZ)
This commit is contained in:
parent
12f7fc7a08
commit
95cfc30788
1 changed files with 0 additions and 2 deletions
|
@ -228,8 +228,6 @@ initdisplay(char *dev, char *win, void(*error)(Display*, char*))
|
||||||
werrstr("initdisplay: %s: %r", buf);
|
werrstr("initdisplay: %s: %r", buf);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
if(ctlfd < 0)
|
|
||||||
goto Error1;
|
|
||||||
if((n=read(ctlfd, info, sizeof info)) < 12){
|
if((n=read(ctlfd, info, sizeof info)) < 12){
|
||||||
Error2:
|
Error2:
|
||||||
close(ctlfd);
|
close(ctlfd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue