fix: put key in const in get_env_variable

This commit is contained in:
starnakin 2023-06-28 18:23:04 +02:00
parent 33653cb824
commit 6490d4de8c
2 changed files with 2 additions and 1 deletions

2
src/env/env.c vendored
View File

@ -105,7 +105,7 @@ lst** env_init(const char** env)
return (root);
}
char *get_env_variable(lst** root, char* key)
char *get_env_variable(lst** root, const char* key)
{
lst* current = *root;
env *content;

1
src/env/env.h vendored
View File

@ -10,3 +10,4 @@ typedef struct s_env
int add_env_variable(lst** root, const char *key, const char *value);
lst** env_init(const char **env);
void env_del(void *ptr);
char *get_env_variable(lst** root, const char* key);