summaryrefslogtreecommitdiff
path: root/src/ecbor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ecbor.c')
-rw-r--r--src/ecbor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ecbor.c b/src/ecbor.c
index 2093366..96cc4cc 100644
--- a/src/ecbor.c
+++ b/src/ecbor.c
@@ -88,11 +88,11 @@ extern ecbor_type_t
ecbor_get_type (ecbor_item_t *item)
{
if (!item) {
- return ECBOR_TYPE_UNDEFINED;
+ return ECBOR_TYPE_NONE;
}
if (item->type < ECBOR_TYPE_FIRST
|| item->type > ECBOR_TYPE_LAST) {
- return ECBOR_TYPE_UNDEFINED;
+ return ECBOR_TYPE_NONE;
}
return item->type;
}