diff options
| author | Mistivia <i@mistivia.com> | 2025-11-30 21:57:37 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-11-30 21:57:37 +0800 |
| commit | 71549ca55d515c69efd87a2a58401c135db39e21 (patch) | |
| tree | 5481e10ec6e3a87c7096e1f8196e6020a9113131 /ezlive_config.c | |
| parent | 1929cd6231a38a4bcd8950417a038ec35c60b54d (diff) | |
add live key support
Diffstat (limited to 'ezlive_config.c')
| -rw-r--r-- | ezlive_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ezlive_config.c b/ezlive_config.c index a8fa258..2b059b0 100644 --- a/ezlive_config.c +++ b/ezlive_config.c @@ -27,6 +27,7 @@ void EZLiveConfig_init(EZLiveConfig *self) { self->access_key = NULL; self->secret_key = NULL; self->region = strdup("auto"); + self->key = strdup(""); } static void set_field(const char **field, const char *value) { @@ -77,6 +78,8 @@ void EZLiveConfig_load(EZLiveConfig *self, const char *filename) { set_field(&self->secret_key, val); } else if (strcmp(key, "region") == 0) { set_field(&self->region, val); + } else if (strcmp(key, "key") == 0) { + set_field(&self->key, val); } } |
