From 4482bfd2e468ac40a20fce24cc57901ddd4c98f4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 23 Jun 2009 12:43:10 +0000 Subject: [PATCH] Fixed build --- ext/imap/php_imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 24111e1399..a5b2dc9068 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2670,7 +2670,7 @@ PHP_FUNCTION(imap_sort) slst = mail_sort(imap_le_struct->imap_stream, (myargc == 6 ? Z_STRVAL_PP(charset) : NIL), spg, mypgm, (myargc >= 4 ? Z_LVAL_PP(flags) : NIL)); - if (spg && !(flags & SE_FREE)) { + if (spg && myargc >= 4 && !(Z_LVAL_PP(flags) & SE_FREE)) { mail_free_searchpgm(&spg); } -- 2.40.0