Skip to content

Commit 3483de2

Browse files
committed
fix error message generation
1 parent 9a350fe commit 3483de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn(int type, const char *
16711671
ZEND_API ZEND_COLD void zend_strerror_noreturn(int type, int errn, const char *message)
16721672
{
16731673
char buf[1024];
1674-
if (!strerror_r(errn, buf, sizeof(buf)))
1674+
if (strerror_r(errn, buf, sizeof(buf)) != 0)
16751675
zend_error_noreturn(type, "%s: %d", message, errn);
16761676

16771677
zend_error_noreturn(type, "%s: %s (%d)", message, buf, errn);

0 commit comments

Comments
 (0)