Commit e0dad4d043fac00802e8adb8414c91f539d00226

Thomas de Grivel 2024-02-26T12:52:38

fix segv

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/libc3/window/sdl2/demo/matrix.c b/libc3/window/sdl2/demo/matrix.c
index 2c244ec..5e25e6c 100644
--- a/libc3/window/sdl2/demo/matrix.c
+++ b/libc3/window/sdl2/demo/matrix.c
@@ -96,7 +96,8 @@ bool matrix_column_render (s_sequence *seq, s_tag *tag)
       matrix_text_clean(&(*list)->tag);
       *list = list_delete(*list);
     }
-    list = &(*list)->next.data.list;
+    else
+      list = &(*list)->next.data.list;
   }
   return true;
 }