summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-08-08 18:02:34 +0000
committerrelyea%netscape.com <devnull@localhost>2002-08-08 18:02:34 +0000
commitdf19f209c455ff73f84bb801e3334e77875ed5df (patch)
treebf5ae704d275bf0e3c6b63986ca4d12448598141
parenta01713db8b78a9f60ed8ace6383e4d95eb4aaf95 (diff)
downloadnss-hg-df19f209c455ff73f84bb801e3334e77875ed5df.tar.gz
Bug 607834. save the correct name on so we can reset the database.
-rw-r--r--security/nss/lib/softoken/keydb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/keydb.c b/security/nss/lib/softoken/keydb.c
index 897946dae..f6b1a19a9 100644
--- a/security/nss/lib/softoken/keydb.c
+++ b/security/nss/lib/softoken/keydb.c
@@ -956,7 +956,7 @@ nsslowkey_OpenKeyDB(PRBool readOnly, const char *appName, const char *prefix,
}
handle->appname = appName ? PORT_Strdup(appName) : NULL ;
- handle->dbname = appName ? PORT_Strdup(dbname) :
+ handle->dbname = (appName == NULL) ? PORT_Strdup(dbname) :
(prefix ? PORT_Strdup(prefix) : NULL);
handle->readOnly = readOnly;