mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
ext/standard/info.c: Remove unreachable conditional branch
This commit is contained in:
parent
6e2bbc49c7
commit
0b8fbacd58
@ -680,13 +680,12 @@ PHPAPI zend_string *php_get_uname(char mode)
|
||||
} else if (mode == 'v') {
|
||||
char *winver = php_get_windows_name();
|
||||
dwBuild = (DWORD)(HIWORD(dwVersion));
|
||||
if (winver == NULL) {
|
||||
return strpprintf(0, "build %d", dwBuild);
|
||||
} else {
|
||||
zend_string *build_with_version = strpprintf(0, "build %d (%s)", dwBuild, winver);
|
||||
efree(winver);
|
||||
return build_with_version;
|
||||
}
|
||||
|
||||
ZEND_ASSERT(winver != NULL);
|
||||
|
||||
zend_string *build_with_version = strpprintf(0, "build %d (%s)", dwBuild, winver);
|
||||
efree(winver);
|
||||
return build_with_version;
|
||||
} else if (mode == 'm') {
|
||||
php_get_windows_cpu(tmp_uname, sizeof(tmp_uname));
|
||||
php_uname = tmp_uname;
|
||||
|
Loading…
Reference in New Issue
Block a user