Commit 4fc6880d authored by Philip Withnall's avatar Philip Withnall

gtktextview: Fix a definite use of an uninitialised variable

This seems to have been a typo in the original code, and allowed access
to virtual_cursor_y when it was uninitialised.

Found by scan-build.
parent 51971d56
......@@ -8787,7 +8787,7 @@ gtk_text_view_get_virtual_cursor_pos (GtkTextView *text_view,
if (y)
if (priv->virtual_cursor_x != -1)
if (priv->virtual_cursor_y != -1)
*y = priv->virtual_cursor_y;
*y = pos.y + pos.height / 2;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment