From 675734766a36a53e00834dc8b0d06416e2aa2845 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Thu, 13 Sep 2001 21:39:05 +0000 Subject: [PATCH] Bugzilla bug 98335: fixed two errors identified by compiler warnings and deleted an unnecessary if. The patch is contributed by timeless@mac.com. --- security/nss/cmd/certcgi/certcgi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/security/nss/cmd/certcgi/certcgi.c b/security/nss/cmd/certcgi/certcgi.c index c9257a82f31f..725e6ffadbaa 100644 --- a/security/nss/cmd/certcgi/certcgi.c +++ b/security/nss/cmd/certcgi/certcgi.c @@ -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"); }