diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-11-25 14:36:05 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-11-25 14:36:05 +0000 |
commit | 5af8ca71e81d35923ddc924346109bb4e3ca50b6 (patch) | |
tree | 0d5b1393bde21245846bbd6bd343cbde4f2825f6 /src/plugins/kdb/db2 | |
parent | da718373999b72b70be8c146d7bf2397d9ff6913 (diff) | |
download | krb5-5af8ca71e81d35923ddc924346109bb4e3ca50b6.zip krb5-5af8ca71e81d35923ddc924346109bb4e3ca50b6.tar.gz krb5-5af8ca71e81d35923ddc924346109bb4e3ca50b6.tar.bz2 |
In krb5_db2_db_init, make a format string constant to make Coverity
happy. (Previously it was a disjunction of two constants, which is
fine, but not as obviously safe to a static analysis tool.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23355 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins/kdb/db2')
-rw-r--r-- | src/plugins/kdb/db2/kdb_db2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c index 042649e..50d427e 100644 --- a/src/plugins/kdb/db2/kdb_db2.c +++ b/src/plugins/kdb/db2/kdb_db2.c @@ -338,9 +338,8 @@ krb5_db2_db_init(krb5_context context) if ((retval = krb5_db2_db_get_age(context, NULL, &db_ctx->db_lf_time))) goto err_out; - snprintf(policy_db_name, sizeof(policy_db_name), - db_ctx->tempdb ? "%s~.kadm5" : "%s.kadm5", - db_ctx->db_name); + snprintf(policy_db_name, sizeof(policy_db_name), "%s%s.kadm5", + db_ctx->db_name, db_ctx->tempdb ? "~" : ""); snprintf(policy_lock_name, sizeof(policy_lock_name), "%s.lock", policy_db_name); |