[libsoup] Clarify that an ignored return value is intentional, to appease fortify
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libsoup] Clarify that an ignored return value is intentional, to appease fortify
- Date: Sun, 9 Aug 2009 13:18:00 +0000 (UTC)
commit d17e823e3457452f15c058d1a5b0cedae6e6d9f4
Author: Dan Winship <danw gnome org>
Date: Sun Aug 9 09:15:38 2009 -0400
Clarify that an ignored return value is intentional, to appease fortify
http://bugzilla.gnome.org/show_bug.cgi?id=591226
libsoup/soup-date.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c
index 13364ba..2279786 100644
--- a/libsoup/soup-date.c
+++ b/libsoup/soup-date.c
@@ -211,7 +211,7 @@ soup_date_new_from_now (int offset_seconds)
static gboolean
parse_iso8601_date (SoupDate *date, const char *date_string)
{
- gulong val;
+ gulong val, ignored;
if (strlen (date_string) < 15)
return FALSE;
@@ -250,7 +250,7 @@ parse_iso8601_date (SoupDate *date, const char *date_string)
return FALSE;
if (*date_string == '.' || *date_string == ',')
- strtoul (date_string + 1, (char **)&date_string, 10);
+ ignored = strtoul (date_string + 1, (char **)&date_string, 10);
if (*date_string == 'Z') {
date_string++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]