[giggle] Fix previous commit



commit 142229b5c47c5945d49252aaff96311e739acedb
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Mar 31 05:34:43 2010 +0200

    Fix previous commit

 libgiggle/giggle-author.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgiggle/giggle-author.c b/libgiggle/giggle-author.c
index 375ccb8..4bfde32 100644
--- a/libgiggle/giggle-author.c
+++ b/libgiggle/giggle-author.c
@@ -80,8 +80,10 @@ author_set_string (GiggleAuthorPriv *priv,
 	if (G_UNLIKELY (!regex)) {
 		regex = g_regex_new ("^\\s*([^<]+?)?\\s*(?:<([^>]+)>)?\\s*$",
 				     G_REGEX_OPTIMIZE | G_REGEX_RAW, 0, &error);
-		g_warning ("%s", error->message);
-		g_error_free (error);
+		if (error) {
+			g_warning ("%s", error->message);
+			g_error_free (error);
+		}
 	}
 
 	if (g_regex_match (regex, priv->string, 0, &match)) {



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