aboutsummaryrefslogtreecommitdiffstats
path: root/src/variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/variables.c')
-rw-r--r--src/variables.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/variables.c b/src/variables.c
index c7cc4da..c478d9d 100644
--- a/src/variables.c
+++ b/src/variables.c
@@ -21,8 +21,6 @@ bool add_variable(const char *key, const char *val) {
}
const char *get_variable(const char *key) {
- fprintf(stderr, "Key is: %s\n", key);
-
key += (key[0] == '$');
const char *val;
strmap_status stat = strmap_get(map, key, &val);
@@ -37,10 +35,7 @@ const char *get_variable(const char *key) {
break;
}
- val = (val) ? val : "";
- fprintf(stderr, "Value is: %s\n", val);
-
- return val;
+ return (val) ? val : "";
}
bool promote_variable_to_env(const char *key) {