Skip to content

Commit 8df9e6c

Browse files
committed
Remove redundant check on ser
It can't be NULL, and even if it could, the ser++ would be UB.
1 parent 791700d commit 8df9e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2909,7 +2909,7 @@ static PHP_MINFO_FUNCTION(session) /* {{{ */
29092909

29102910
/* Get serializer handlers */
29112911
for (i = 0, ser = ps_serializers; i < MAX_SERIALIZERS; i++, ser++) {
2912-
if (ser && ser->name) {
2912+
if (ser->name) {
29132913
smart_str_appends(&ser_handlers, ser->name);
29142914
smart_str_appendc(&ser_handlers, ' ');
29152915
}

0 commit comments

Comments
 (0)