diff options
Diffstat (limited to 'src/expressions.c')
-rw-r--r-- | src/expressions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c index 25d950904..a8d639325 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -1306,9 +1306,10 @@ is_recipient_list_sorted (const InternetAddressList * ia) return FALSE; } #ifdef GMIME24 + num = internet_address_list_length ((InternetAddressList *)ia); cur = ia; for (i = 0; i < num; i ++) { - addr = internet_address_list_get_address (cur, i); + addr = internet_address_list_get_address ((InternetAddressList *)cur, i); current.addr = (char *)internet_address_get_name (addr); if (previous.addr != NULL) { if (g_ascii_strcasecmp (current.addr, previous.addr) < 0) { |