Bugzilla bug 98335: fixed two errors identified by compiler warnings

and deleted an unnecessary if.  The patch is contributed by
timeless@mac.com.


git-svn-id: svn://10.0.0.236/trunk@102887 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com
2001-09-13 21:39:05 +00:00
parent 53bd53d97b
commit 7a6591ae62

View File

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