[libsoup/gnome-3-6] soup-tld: fix a return-if-fail check



commit 568d4ac1d934e472148d2689b5a5d4cf4f293d2d
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]