451ea8f912a071168211a36fc9533776c7e45ff2
kent
  Sun Aug 11 18:50:57 2019 -0700
Fixing a crash-on-null

diff --git src/lib/strex.c src/lib/strex.c
index 40c0f9d..eecb5b1 100644
--- src/lib/strex.c
+++ src/lib/strex.c
@@ -985,31 +985,31 @@
 res.type = strexTypeString;
 switch (builtIn->func)
     {
     case strexBuiltInTrim:
 	{
         struct strexEval a = strexLocalEval(p->children, record, lookup, lm);
 	res.val.s = trimSpaces(a.val.s);
 	break;
 	}
     case strexBuiltInBetween:
 	{
         struct strexEval a = strexLocalEval(p->children, record, lookup, lm);
         struct strexEval b = strexLocalEval(p->children->next, record, lookup, lm);
         struct strexEval c = strexLocalEval(p->children->next->next, record, lookup, lm);
 	char *between = stringBetween(a.val.s, c.val.s, b.val.s);
-	res.val.s = lmCloneString(lm, between);
+	res.val.s = emptyForNull(lmCloneString(lm, between));
 	freeMem(between);
         break;
 	}
     case strexBuiltInSplit:
         {
         struct strexEval a = strexLocalEval(p->children, record, lookup, lm);
         struct strexEval b = strexLocalEval(p->children->next, record, lookup, lm);
 	res.val.s = splitString(a.val.s, b.val.i, lm);
 	break;
 	}
     case strexBuiltInNow:
         {
 	time_t now = time(NULL);
 	res.val.s = lmCloneString(lm, ctime(&now));
 	eraseTrailingSpaces(res.val.s);