diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-09-03 10:23:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-09-03 10:23:38 +0000 |
commit | 574098461cd45be12a497afbdac6f93c58978387 (patch) | |
tree | 9eb60a5930b7c20d42f7fde1e234cae3968ed3d9 /backends/aws_kinesis/aws_kinesis.c | |
parent | Adding upstream version 1.16.1. (diff) | |
download | netdata-0f1fa13e6d6436678dcf4d0695c36d200ccee93c.tar.xz netdata-0f1fa13e6d6436678dcf4d0695c36d200ccee93c.zip |
Adding upstream version 1.17.0.upstream/1.17.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'backends/aws_kinesis/aws_kinesis.c')
-rw-r--r-- | backends/aws_kinesis/aws_kinesis.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/backends/aws_kinesis/aws_kinesis.c b/backends/aws_kinesis/aws_kinesis.c index d8b79364c..b1ea47862 100644 --- a/backends/aws_kinesis/aws_kinesis.c +++ b/backends/aws_kinesis/aws_kinesis.c @@ -63,18 +63,11 @@ int read_kinesis_conf(const char *path, char **access_key_id_p, char **secret_ac continue; } - if(!value) value = ""; + if(!value) + value = ""; + else + value = strip_quotes(value); - // strip quotes - if(*value == '"' || *value == '\'') { - value++; - - s = value; - while(*s) s++; - if(s != value) s--; - - if(*s == '"' || *s == '\'') *s = '\0'; - } if(name[0] == 'a' && name[4] == 'a' && !strcmp(name, "aws_access_key_id")) { access_key_id = strdupz(value); } |