зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug 98335: fixed two errors identified by compiler warnings
and deleted an unnecessary if. The patch is contributed by timeless@mac.com.
This commit is contained in:
Родитель
711cbca1a8
Коммит
675734766a
|
@ -287,7 +287,7 @@ make_datastruct(char *data, int len)
|
|||
datastruct = (Pair *) PORT_Realloc
|
||||
(datastruct, fields * sizeof(Pair));
|
||||
if (datastruct == NULL) {
|
||||
error_allocate;
|
||||
error_allocate();
|
||||
}
|
||||
current = datastruct + (fields - remaining);
|
||||
}
|
||||
|
@ -1346,17 +1346,15 @@ string_to_oid(char *string)
|
|||
string += i;
|
||||
} else {
|
||||
if (*(string + i) == '.') {
|
||||
*(string + i) == '\0';
|
||||
*(string + i) = '\0';
|
||||
value = atoi(string);
|
||||
string += i + 1;
|
||||
} else {
|
||||
*(string + i) = '\0';
|
||||
i++;
|
||||
value = atoi(string);
|
||||
if (*(string + i) == ' ') {
|
||||
while (*(string + i) == ' ')
|
||||
i++;
|
||||
}
|
||||
while (*(string + i) == ' ')
|
||||
i++;
|
||||
if (*(string + i) != '\0') {
|
||||
error_out("ERROR: Improperly formated OID");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче