diff options
author | default <nobody@localhost> | 2022-10-16 18:03:28 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-10-16 18:03:28 +0200 |
commit | d9a15b8af7da2bc27d4d55ee745242f5b4e39071 (patch) | |
tree | f890fe2b2f0a327f08da31404fd267c675fac690 /xs.h | |
parent | 0d79e465e6f01e51c5ddf26b40096e608b506d9b (diff) |
Attachments are now starting to get real.
Diffstat (limited to 'xs.h')
-rw-r--r-- | xs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -737,7 +737,7 @@ double xs_number_get(const char *v) { double f = 0.0; - if (v[0] == XSTYPE_NUMBER) + if (v != NULL && v[0] == XSTYPE_NUMBER) f = atof(&v[1]); return f; @@ -749,7 +749,7 @@ const char *xs_number_str(const char *v) { const char *p = NULL; - if (v[0] == XSTYPE_NUMBER) + if (v != NULL && v[0] == XSTYPE_NUMBER) p = &v[1]; return p; |