qulogic/pidgin

debugwin: Don't crash if no regex during message load.

2018-06-13, Elliott Sales de Andrade
e84a120599f7
Parents a0a1ca466179
Children c38b26076992
debugwin: Don't crash if no regex during message load.
--- a/pidgin/pidgindebug.c Wed Jun 13 17:52:43 2018 -0400
+++ b/pidgin/pidgindebug.c Wed Jun 13 17:53:20 2018 -0400
@@ -209,6 +209,9 @@
GtkTextIter match_start, match_end;
gchar *text;
+ if (!win->regex)
+ return;
+
initial_position = gtk_text_iter_get_offset(start);
if (!win->invert) {