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:
wtc%netscape.com 2001-09-13 21:39:05 +00:00
Родитель 711cbca1a8
Коммит 675734766a
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -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");
}