[epiphany] Avoid using g_return_val_if_fail in ephy_uri_safe_unescape
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Avoid using g_return_val_if_fail in ephy_uri_safe_unescape
- Date: Wed, 7 Oct 2015 13:31:22 +0000 (UTC)
commit 9a14372e6812ca0e48a9ca90cce3e3006a6d1efc
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Sep 21 12:47:38 2015 -0500
Avoid using g_return_val_if_fail in ephy_uri_safe_unescape
https://bugzilla.gnome.org/show_bug.cgi?id=755365
lib/ephy-uri-helpers.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-uri-helpers.c b/lib/ephy-uri-helpers.c
index d4d8335..956d944 100644
--- a/lib/ephy-uri-helpers.c
+++ b/lib/ephy-uri-helpers.c
@@ -256,7 +256,7 @@ ephy_uri_safe_unescape (const char *uri_string)
/* This function is not null-safe since it is mostly used in scenarios where
* passing or returning null would typically lead to a security issue. */
- g_return_val_if_fail (uri_string, g_strdup (""));
+ g_assert (uri_string);
/* Protect against escaped null characters and escaped slashes. */
decoded_uri = g_uri_unescape_string (uri_string, "/");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]