[libsoup] soup-tld: fix a return-if-fail check



commit 160021d315e1df7d6523283d83d1e6052fa1b1f7
Author: Dan Winship <danw gnome org>
Date:   Tue Dec 4 11:44:53 2012 -0500

    soup-tld: fix a return-if-fail check

 libsoup/soup-tld.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-tld.c b/libsoup/soup-tld.c
index 8782a82..5fdb44a 100644
--- a/libsoup/soup-tld.c
+++ b/libsoup/soup-tld.c
@@ -106,7 +106,7 @@ soup_tld_domain_is_public_suffix (const char *domain)
 	g_return_val_if_fail (domain, FALSE);
 
 	/* Skip the leading '.' if present */
-	if (*domain == '.' && !(++domain))
+	if (*domain == '.' && !*(++domain))
 		g_return_val_if_reached (FALSE);
 
 	base_domain = soup_tld_get_base_domain_internal (domain, 0, &error);



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