Commit 27318b4d4aee4d5cd23a0b42e08f99a0aea642ca

Thomas de Grivel 2024-07-31T14:00:43

wip httpd

diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 6554630..bdacc86 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -21,8 +21,9 @@ defmodule HTTPd do
   </body>
 </html>
 "}
-      if (HTTP.Response.buf_write(res, client.buf_rw.w) < 0)
+      if (HTTP.Response.buf_write(res, client.buf_rw.w) < 0) then
         ok = false
+      end
     end
   }
 
diff --git a/libkc3/env.c b/libkc3/env.c
index c4a4ff2..694ea06 100644
--- a/libkc3/env.c
+++ b/libkc3/env.c
@@ -2214,11 +2214,11 @@ bool env_load (s_env *env, const s_str *path)
   tag_init_str(file_path, NULL, path->size, path->ptr.pchar);
   while (1) {
     if ((r = buf_parse_comments(&buf)) < 0)
-      goto ko;
+      break;
     if ((r = buf_ignore_spaces(&buf)) < 0)
-      goto ko;
+      break;
     if ((r = buf_parse_tag(&buf, &tag)) < 0)
-      goto ko;
+      break;
     if (! r)
       continue;
     if (! env_eval_tag(env, &tag, &tmp)) {