summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4684b82)
If no backend was defined we were attempting to strlen a NULL string,
which isn't sensible. Gracefully exit with a critical error instead.
+ if (!config.db_backend) {
+ logthing(LOGTHING_CRITICAL, "No database backend defined.");
+ exit(EXIT_FAILURE);
+ }
+
if (config.backends_dir == NULL) {
soname = malloc(strlen(config.db_backend)
+ strlen("/libkeydb_")
if (config.backends_dir == NULL) {
soname = malloc(strlen(config.db_backend)
+ strlen("/libkeydb_")