]> granicus.if.org Git - php/commitdiff
replaced the check with assert as it's kinda unusual case
authorAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 21:57:53 +0000 (23:57 +0200)
committerAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 21:57:53 +0000 (23:57 +0200)
ext/standard/info.c

index 67944b350e385100cb94cbd7fc4ec1ded638eecf..286ea5c2cb995fb17021fd4daaf483c4bd78da02 100644 (file)
@@ -585,11 +585,7 @@ PHPAPI zend_string *php_get_uname(char mode)
                char *winver = php_get_windows_name();
                char wincpu[20];
 
-               if (NULL == winver) {
-                       TSRMLS_FETCH();
-                       /* This should never happen */
-                       return STR_EMPTY_ALLOC();
-               }
+               ZEND_ASSERT(winver != NULL);
 
                php_get_windows_cpu(wincpu, sizeof(wincpu));
                dwBuild = (DWORD)(HIWORD(dwVersion));