commit | 2beea0ca302e728715679fb3d9fd951383325e99 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 25 08:05:23 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 25 08:05:23 2021 +0200 |
tree | 7a807f02898a064f002a310c01a4dfdaaa7d5aea | |
parent | 5c5ee702e490d4b6df0b3c70c363409d49635488 [diff] |
tree data BUGFIX trailing zeroes cannot be ignored
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c index b104304..5d22eec 100644 --- a/src/tree_data_helpers.c +++ b/src/tree_data_helpers.c
@@ -788,14 +788,6 @@ for (frac_len = 0; isdigit(frac[frac_len]); ++frac_len) {} i += frac_len; - - /* skip trailing zeros */ - for ( ; frac_len && (frac[frac_len - 1] == '0'); --frac_len) {} - - if (!frac_len) { - /* only zeros, ignore */ - frac = NULL; - } } else { frac = NULL; }