Commit 2020eb123aed5686cfaf63a348f1775168592b45

Thomas de Grivel 2024-12-19T22:03:47

fix assert

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gtk4/text_view.c b/gtk4/text_view.c
index 0c7363f..86e24dc 100644
--- a/gtk4/text_view.c
+++ b/gtk4/text_view.c
@@ -67,7 +67,7 @@ void kc3_gtk4_text_view_set_text (GtkTextView **text_view,
 {
   GtkTextBuffer *buffer;
   assert(text_view);
-  assert(dest);
+  assert(text);
   if (! (buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(*text_view)))) {
     err_puts("kc3_gtk4_text_view_set_text: gtk_text_view_get_buffer");
     assert(! "kc3_gtk4_text_view_set_text: gtk_text_view_get_buffer");