aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-25 23:28:33 +0200
committerThomas White <taw@bitwiz.me.uk>2018-10-25 23:39:30 +0200
commitd5f7ae9d6a28781051d7649a656dd2f93b6ea96d (patch)
tree08974bd5054ad25371b8a42f245f73ab584d8ef3 /src/stylesheet.c
parentc355bcfac1e000fa8de99856af505a9208bb2f2c (diff)
Set values in stylesheet editor
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index ed84905..12beb69 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -92,7 +92,10 @@ char *stylesheet_lookup(Stylesheet *ss, const char *path)
}
v = json_array_get_string_element(array, 0);
- if ( v == NULL ) return NULL;
+ if ( v == NULL ) {
+ printf("%s not a string\n", path);
+ return NULL;
+ }
ret = strdup(v);
json_node_unref(node);