project_files/hwc/rtl/misc.c
changeset 14255 a7320c65f484
parent 11657 09ebdfe364d9
child 14256 fa2e3f123a09
--- a/project_files/hwc/rtl/misc.c	Mon Nov 19 21:51:46 2018 +0100
+++ b/project_files/hwc/rtl/misc.c	Mon Nov 19 22:25:02 2018 +0100
@@ -162,6 +162,12 @@
 astring fpcrtl_pchar2astr(const char *s)
 {
     astring result;
+
+    if(!s) {
+        result.len = 0;
+        return result;
+    }
+
     int rlen = strlen(s);
 
     if(rlen > MAX_ANSISTRING_LENGTH){