[geocode-glib] location: Don't warn for NULL description
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] location: Don't warn for NULL description
- Date: Mon, 16 Sep 2013 17:49:00 +0000 (UTC)
commit 48e46c98d029348625dfdc54341d24817eea17ca
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 16 13:25:16 2013 +0200
location: Don't warn for NULL description
set_description with NULL is a valid way for clearing the value.
See also: https://bugs.freedesktop.org/show_bug.cgi?id=69105
https://bugzilla.gnome.org/show_bug.cgi?id=708156
geocode-glib/geocode-location.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/geocode-location.c b/geocode-glib/geocode-location.c
index 1217b7b..5897ea2 100644
--- a/geocode-glib/geocode-location.c
+++ b/geocode-glib/geocode-location.c
@@ -329,7 +329,6 @@ geocode_location_set_description (GeocodeLocation *loc,
const char *description)
{
g_return_if_fail (GEOCODE_IS_LOCATION (loc));
- g_return_if_fail (description != NULL);
g_free (loc->priv->description);
loc->priv->description = g_strdup (description);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]