Mercurial > hg
diff mcabber/src/screen.c @ 1663:dcb0b4522ded
Fix GError handling
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Wed, 13 Jan 2010 12:43:57 +0200 |
parents | dc03a24198a9 |
children | 1a4890514eb9 |
line wrap: on
line diff
--- a/mcabber/src/screen.c Sat Dec 12 16:23:21 2009 +0200 +++ b/mcabber/src/screen.c Wed Jan 13 12:43:57 2010 +0200 @@ -2043,14 +2043,13 @@ static inline void scr_LogUrls(const gchar *string) { GMatchInfo *match_info; - GError *error = NULL; - - g_regex_match_full(url_regex, string, -1, 0, 0, &match_info, &error); + + g_regex_match_full(url_regex, string, -1, 0, 0, &match_info, NULL); while (g_match_info_matches(match_info)) { gchar *url = g_match_info_fetch(match_info, 0); scr_print_logwindow(url); g_free(url); - g_match_info_next(match_info, &error); + g_match_info_next(match_info, NULL); } g_match_info_free(match_info); }