types BUGFIX remove dead code
diff --git a/src/plugins_types.c b/src/plugins_types.c
index 78047a3..00d7bc5 100644
--- a/src/plugins_types.c
+++ b/src/plugins_types.c
@@ -687,7 +687,7 @@
if (options & (LY_TYPE_OPTS_CANONIZE | LY_TYPE_OPTS_STORE)) {
if (options & LY_TYPE_OPTS_STORE) {
storage->dec64 = d;
- ly_type_store_strval(ctx, options, lydict_insert(ctx, value_len ? value : "", value_len),
+ ly_type_store_strval(ctx, options, lydict_insert(ctx, value, value_len),
lydict_insert(ctx, buf, strlen(buf)), storage, canonized);
} else {
ly_type_store_strval(ctx, options, NULL, lydict_insert(ctx, buf, strlen(buf)), storage, canonized);
@@ -1153,7 +1153,7 @@
/* NOTE: despite the pointer is used in storage twice (original and canonical_cache), it is stored in dictionary
* just once. This works even without storage - the string is returned as canonized. In case both options are used,
* ly_type_store_strval() increases reference count in dictionary for canonized. */
- const char *str = lydict_insert(ctx, value_len ? value : "", value_len);
+ const char *str = lydict_insert(ctx, value, value_len);
if (options & LY_TYPE_OPTS_STORE) {
storage->boolean = i;
}