mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 04:26:00 +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
|
#ifdef WITH_SECCOMP
|
||||||
|
|
||||||
char* sandbox = NULL;
|
char* sandbox = NULL;
|
||||||
girara_setting_get(zathura->ui.session, "sandbox", &sandbox);
|
girara_setting_get(zathura->ui.session, "sandbox", &sandbox);
|
||||||
|
|
||||||
if (g_strcmp0(sandbox, "none") == 0) {
|
if (g_strcmp0(sandbox, "none") == 0) {
|
||||||
girara_debug("Sandbox deactivated.");
|
girara_debug("Sandbox deactivated.");
|
||||||
} else if (g_strcmp0(sandbox, "normal") == 0) {
|
} else if (g_strcmp0(sandbox, "normal") == 0) {
|
||||||
|
@ -309,12 +307,11 @@ main(int argc, char* argv[])
|
||||||
girara_error("Invalid sandbox option");
|
girara_error("Invalid sandbox option");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free(sandbox);
|
g_free(sandbox);
|
||||||
if (ret){
|
|
||||||
|
if (ret != 0) {
|
||||||
goto free_and_ret;
|
goto free_and_ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* open document if passed */
|
/* open document if passed */
|
||||||
|
|
Loading…
Reference in a new issue