[gmime: 2/7] Fixed argument validation
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime: 2/7] Fixed argument validation
- Date: Tue, 28 Mar 2017 23:46:53 +0000 (UTC)
commit aeb966c0647a354e34e1ec48be23820d79b28433
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Tue Mar 28 12:49:31 2017 -0400
Fixed argument validation
gmime/gmime-references.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gmime/gmime-references.c b/gmime/gmime-references.c
index 1881090..0d583c6 100644
--- a/gmime/gmime-references.c
+++ b/gmime/gmime-references.c
@@ -223,8 +223,8 @@ const char *
g_mime_references_get_message_id (GMimeReferences *refs, int index)
{
g_return_val_if_fail (refs != NULL, NULL);
- g_return_val_if_fail (index < 0, NULL);
- g_return_val_if_fail (index >= refs->array->len, NULL);
+ g_return_val_if_fail (index >= 0, NULL);
+ g_return_val_if_fail (index < refs->array->len, NULL);
return refs->array->pdata[index];
}
@@ -244,8 +244,8 @@ g_mime_references_set_message_id (GMimeReferences *refs, int index, const char *
char *buf;
g_return_if_fail (refs != NULL);
- g_return_if_fail (index < 0);
- g_return_if_fail (index >= refs->array->len);
+ g_return_if_fail (index >= 0);
+ g_return_if_fail (index < refs->array->len);
buf = g_strdup (msgid);
g_free (refs->array->pdata[index]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]