Forward errors accordingly
This commit is contained in:
parent
45924ed733
commit
e23e9697d7
|
@ -54,8 +54,11 @@ static int _browser(char const * filename, int view)
|
|||
{
|
||||
Browser * browser;
|
||||
|
||||
if((browser = browser_new(filename)) != NULL && view != -1)
|
||||
if((browser = browser_new(filename)) == NULL)
|
||||
return -1;
|
||||
if(view != -1)
|
||||
browser_set_view(browser, view);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user