summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-08-22 23:02:26 +0200
committerJo-Philipp Wich <jo@mein.io>2020-08-22 23:02:26 +0200
commitd8e85091f63715eb75e182166fd8e3165c321dd9 (patch)
tree052828e9899106656cae4be4ed07d22eb1e8de5b
parentc4de53ac0072a0d957e589b652af9765be871a0d (diff)
lib.c: add missing string case to type()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 61f4fc2..70bd67e 100644
--- a/lib.c
+++ b/lib.c
@@ -700,6 +700,9 @@ ut_type(struct ut_state *s, struct ut_opcode *op, struct json_object *args)
case json_type_boolean:
return json_object_new_string("bool");
+ case json_type_string:
+ return json_object_new_string("string");
+
default:
return NULL;
}