From 204ee18d3fd16a6b5bdfa884c5613b21f28b566d Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Sun, 21 May 2023 21:00:18 +1100
Subject: [PATCH] fix empty string

---
 src/lib66/parse/parse_compute_list.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib66/parse/parse_compute_list.c b/src/lib66/parse/parse_compute_list.c
index 211912d9..04c520f3 100644
--- a/src/lib66/parse/parse_compute_list.c
+++ b/src/lib66/parse/parse_compute_list.c
@@ -31,6 +31,9 @@
  * */
 int parse_compute_list(resolve_wrapper_t_ref wres, stralloc *sa, uint32_t *res, uint8_t opts)
 {
+
+    if (!sa->len)
+        return resolve_add_string(wres, "") ;
     int r, found = 0 ;
     size_t len = sa->len, pos = 0 ;
     size_t nelement = sastr_nelement(sa) ;
-- 
GitLab