mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
* fix segfault in case of odd version numbers
This commit is contained in:
parent
8b4a25ec13
commit
c6ec881953
1 changed files with 3 additions and 3 deletions
|
@ -99,17 +99,17 @@ compare_special_version_forms(char *form1, char *form2)
|
|||
{"RC", 3},
|
||||
{"#", 4},
|
||||
{"pl", 5},
|
||||
NULL,
|
||||
{NULL, 0},
|
||||
};
|
||||
special_forms_t *pp;
|
||||
|
||||
for (pp = special_forms; pp; pp++) {
|
||||
for (pp = special_forms; pp && pp->name; pp++) {
|
||||
if (strncmp(form1, pp->name, strlen(pp->name)) == 0) {
|
||||
found1 = pp->order;
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (pp = special_forms; pp; pp++) {
|
||||
for (pp = special_forms; pp && pp->name; pp++) {
|
||||
if (strncmp(form2, pp->name, strlen(pp->name)) == 0) {
|
||||
found2 = pp->order;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue