[libsoup] tests/date: Fix compiler warning



commit 752a7b948cff0cd5215a02ed7c9fa4cb733832f9
Author: Colin Walters <walters verbum org>
Date:   Wed Jun 6 22:03:08 2012 -0400

    tests/date: Fix compiler warning

 tests/date.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/date.c b/tests/date.c
index f35c41b..5b3ec34 100644
--- a/tests/date.c
+++ b/tests/date.c
@@ -49,8 +49,8 @@ check_good (SoupDateFormat format, const char *strdate)
 	char *strdate2;
 
 	date = make_date (strdate);
-	if (date)
-		strdate2 = soup_date_to_string (date, format);
+	g_assert (date);
+	strdate2 = soup_date_to_string (date, format);
 	if (!check_ok (strdate, date))
 		return;
 



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