mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
fix for old compilers
This commit is contained in:
parent
2df5e23d79
commit
ba00d135fe
2 changed files with 4 additions and 2 deletions
|
|
@ -279,7 +279,8 @@ static void env_apply_list(const char * const *list, unsigned int num_items) {
|
|||
|
||||
while (env) {
|
||||
if (env->op == SETENV) {
|
||||
for (unsigned int i = 0; i < num_items; i++)
|
||||
unsigned int i;
|
||||
for (i = 0; i < num_items; i++)
|
||||
if (strcmp(env->name, list[i]) == 0) {
|
||||
// sanity check for whitelisted environment variables
|
||||
if (strlen(env->name) + strlen(env->value) >= MAX_ENV_LEN) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ long long unsigned parse_arg_size(char *str) {
|
|||
}
|
||||
|
||||
/* checks for is value valid positive number */
|
||||
for (int i = 0; i < len; i++) {
|
||||
int i;
|
||||
for (i = 0; i < len; i++) {
|
||||
if (!isdigit(*(str+i))) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue