[gedit] Fix bug assigning the length



commit 4a429c2921a0f30ad0229be5e727a5cf78635929
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Aug 1 23:21:51 2012 +0200

    Fix bug assigning the length

 gedit/gedit-view-frame.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index f3a94a4..296775e 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -1015,7 +1015,7 @@ get_selected_text (GtkTextBuffer *doc, gchar **selected_text, gint *len)
 	if (!gtk_text_buffer_get_selection_bounds (doc, &start, &end))
 	{
 		if (len != NULL)
-			len = 0;
+			*len = 0;
 
 		return FALSE;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]