mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 18:56:01 +01:00
CS
This commit is contained in:
parent
64f3eb35f4
commit
abbd8d8550
1 changed files with 3 additions and 6 deletions
|
@ -293,10 +293,8 @@ main(int argc, char* argv[])
|
|||
}
|
||||
|
||||
#ifdef WITH_SECCOMP
|
||||
|
||||
char* sandbox = NULL;
|
||||
girara_setting_get(zathura->ui.session, "sandbox", &sandbox);
|
||||
|
||||
if (g_strcmp0(sandbox, "none") == 0) {
|
||||
girara_debug("Sandbox deactivated.");
|
||||
} else if (g_strcmp0(sandbox, "normal") == 0) {
|
||||
|
@ -309,14 +307,13 @@ main(int argc, char* argv[])
|
|||
girara_error("Invalid sandbox option");
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
g_free(sandbox);
|
||||
if (ret){
|
||||
|
||||
if (ret != 0) {
|
||||
goto free_and_ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* open document if passed */
|
||||
if (file_idx != 0) {
|
||||
if (page_number > 0) {
|
||||
|
|
Loading…
Reference in a new issue