aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-07-07 17:40:28 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-07-07 17:40:28 -0400
commitb02d868a4f74194f910f8ce173cb5586bc62a31a (patch)
tree8694132a54eb4ab3892294f4b119c78fb8e500cb /src
parentdc6bbddab79bab20c5c2d2994cf6eae66bcd767e (diff)
downloadstasis-b02d868a4f74194f910f8ce173cb5586bc62a31a.tar.gz
Offset is constant
Diffstat (limited to 'src')
-rw-r--r--src/lib/core/environment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/environment.c b/src/lib/core/environment.c
index 02bbf82..39d8116 100644
--- a/src/lib/core/environment.c
+++ b/src/lib/core/environment.c
@@ -410,6 +410,7 @@ void runtime_set(RuntimeEnv *env, const char *_key, char *_value) {
if (_key == NULL) {
return;
}
+ const ssize_t key_offset = runtime_contains(env, _key);
char *key = strdup(_key);
if (!key) {
SYSERROR("%s", "unable to allocate memory for key");