]> granicus.if.org Git - php/commitdiff
lookup_browser_name cannot be NULL
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:37:09 +0000 (21:37 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:37:09 +0000 (21:37 +0000)
ext/standard/browscap.c

index 10b250d2329aa2659ae9182cf1cd25ff0e4b5001..3a49adb5fd76123dad2bfc98eae6baa88531cd8b 100644 (file)
@@ -347,9 +347,7 @@ PHP_FUNCTION(get_browser)
                }
        }
 
-       if (lookup_browser_name) {
-               efree(lookup_browser_name);
-       }
+       efree(lookup_browser_name);
 }
 /* }}} */