diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPM.c | 4 | ||||
-rw-r--r-- | src/common/sql.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c index 81acb3415..1f4d4d532 100644 --- a/src/common/HPM.c +++ b/src/common/HPM.c @@ -640,7 +640,9 @@ void hplugins_share_defaults(void) { HPM->share(SQL,"SQL"); /* timer */ HPM->share(timer,"timer"); - + /* libconfig (temp) */ + HPM->share(config_setting_lookup_string,"config_setting_lookup_string"); + HPM->share(config_setting_lookup_int,"config_setting_lookup_int"); } void hpm_init(void) { diff --git a/src/common/sql.c b/src/common/sql.c index dc6c4c569..0e06d6d18 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -1005,6 +1005,9 @@ void Sql_HerculesUpdateCheck(Sql* self) { unsigned int performed = 0; StringBuf buf; + if( self == NULL ) + return;/* return silently, build has no mysql connection */ + if( !( ifp = fopen("sql-files/upgrades/index.txt", "r") ) ) { ShowError("SQL upgrade index was not found!\n"); return; |