Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1662:63ebb1d32c7d | 1663:dcb0b4522ded |
---|---|
2041 | 2041 |
2042 #ifdef HAVE_GLIB_REGEX | 2042 #ifdef HAVE_GLIB_REGEX |
2043 static inline void scr_LogUrls(const gchar *string) | 2043 static inline void scr_LogUrls(const gchar *string) |
2044 { | 2044 { |
2045 GMatchInfo *match_info; | 2045 GMatchInfo *match_info; |
2046 GError *error = NULL; | 2046 |
2047 | 2047 g_regex_match_full(url_regex, string, -1, 0, 0, &match_info, NULL); |
2048 g_regex_match_full(url_regex, string, -1, 0, 0, &match_info, &error); | |
2049 while (g_match_info_matches(match_info)) { | 2048 while (g_match_info_matches(match_info)) { |
2050 gchar *url = g_match_info_fetch(match_info, 0); | 2049 gchar *url = g_match_info_fetch(match_info, 0); |
2051 scr_print_logwindow(url); | 2050 scr_print_logwindow(url); |
2052 g_free(url); | 2051 g_free(url); |
2053 g_match_info_next(match_info, &error); | 2052 g_match_info_next(match_info, NULL); |
2054 } | 2053 } |
2055 g_match_info_free(match_info); | 2054 g_match_info_free(match_info); |
2056 } | 2055 } |
2057 #endif | 2056 #endif |
2058 | 2057 |