stats: we always decode fixed length stats
@@ -91,7 +91,6 @@ stats_conf_set(int argc, char **argv, char *val)
struct stats_hdr *hdr;
size_t size;
void *data;
- int decode_len;
if (argc == 1) {
hdr = stats_group_find(argv[0]);
@@ -99,14 +98,8 @@ stats_conf_set(int argc, char **argv, char *val)
size = stats_size(hdr);
data = stats_data(hdr);
- decode_len = base64_decode_len(val);
- if (decode_len > size) {
memset(data, 0, size);
base64_decode_maxlen(val, data, size);
- } else {
- memset(data, 0, size);
- base64_decode(val, data);
- }
return 0;
}
