]> sigrok.org Git - libsigrokdecode.git/blobdiff - util.c
srd: properly return status code
[libsigrokdecode.git] / util.c
diff --git a/util.c b/util.c
index cd77fc10481836aa3c9057e0d06a3360cecd9135..15994d1254fdfc456c43b28d09093120c57f8495 100644 (file)
--- a/util.c
+++ b/util.c
@@ -98,7 +98,7 @@ SRD_PRIV int py_dictitem_as_str(PyObject *py_obj, const char *key,
 
        ret = py_str_as_str(py_value, outstr);
 
-       return SRD_OK;
+       return ret;
 }
 
 /**