Skip to content

Commit

Permalink
simplify, array_init always succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jul 12, 2018
1 parent 449215f commit 132cb49
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mailparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,13 +1174,7 @@ PHP_FUNCTION(mailparse_msg_get_structure)

mailparse_fetch_mimepart_resource(part, arg);

#if PHP_VERSION_ID >= 70300
array_init(return_value);
#else
if (array_init(return_value) == FAILURE) {
RETURN_FALSE;
}
#endif
php_mimepart_enum_parts(part, &get_structure_callback, return_value);
}
/* }}} */
Expand Down

0 comments on commit 132cb49

Please sign in to comment.