mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
simplify the condition
This commit is contained in:
parent
7d4c81d8d9
commit
0885e4b1b9
@ -414,7 +414,7 @@ static int browser_reg_compare(zval *browser TSRMLS_DC, int num_args, va_list ar
|
||||
|
||||
/* Pick which browser pattern replaces the least amount of
|
||||
characters when compared to the original user agent string... */
|
||||
if (ua_len - prev_len > ua_len - curr_len) {
|
||||
if (prev_len < curr_len) {
|
||||
ZVAL_COPY_VALUE(found_browser_entry, browser);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user