From 6a6755f489101f02e4d79cb36c5701c3a40f1c12 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 8 May 2006 18:05:47 +0000 Subject: [PATCH] kdb_load_library(): SGI compiler requires that when initializing arrays at declaration - only constants be used. [filebases]. Code was introduced with 17975 revision. ticket: 3716 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17986 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/kdb5.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/kdb/kdb5.c b/src/lib/kdb/kdb5.c index c6225474a..852fc85b7 100644 --- a/src/lib/kdb/kdb5.c +++ b/src/lib/kdb/kdb5.c @@ -311,10 +311,13 @@ kdb_load_library(krb5_context kcontext, char *lib_name, db_library * lib) static const char *const dbpath_names[] = { KDB_MODULE_SECTION, "db_module_dir", NULL, }; - const char *filebases[] = { lib_name, NULL }; + const char *filebases[2]; char **profpath = NULL; char **path = NULL; + filebases[0] = lib_name; + filebases[1] = NULL; + if (!strcmp(DB2_NAME, lib_name) && (kdb_db2_pol_err_loaded == 0)) { initialize_adb_error_table(); kdb_db2_pol_err_loaded = 1; -- 2.26.2