[epiphany] ephy-location-action: g_strdup is NULL safe
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-location-action: g_strdup is NULL safe
- Date: Mon, 7 Sep 2009 15:14:46 +0000 (UTC)
commit df54608c60a5e12b667620ba8ec87bac379259de
Author: Xan Lopez <xan gnome org>
Date: Mon Sep 7 18:14:10 2009 +0300
ephy-location-action: g_strdup is NULL safe
src/ephy-location-action.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index fb40a74..0394d6e 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -868,7 +868,7 @@ ephy_location_action_set_address (EphyLocationAction *action,
priv->address = g_strdup (address);
g_free (priv->typed_address);
- priv->typed_address = typed_address ? g_strdup (typed_address) : NULL;
+ priv->typed_address = g_strdup (typed_address);
g_object_notify (G_OBJECT (action), "address");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]