summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkviewpanel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c
index 091482b..861b46f 100644
--- a/src/gtkext/gtkviewpanel.c
+++ b/src/gtkext/gtkviewpanel.c
@@ -903,6 +903,9 @@ bool gtk_view_panel_get_position(const GtkViewPanel *panel, GBufferLine **line,
{
bool result; /* Bilan de l'opération */
+ *line = NULL;
+ if (segment != NULL) *segment = NULL;
+
if (GTK_VIEW_PANEL_GET_CLASS(panel)->get_position == NULL)
return false;