diff --git a/main/pbx.c b/main/pbx.c
index 75134505bc39021cc219a081747e27879ca72ef5..13d125e59476c92f71dbf5c173e7caf488fc0e3e 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -6546,19 +6546,16 @@ int ast_load_documentation(void)
 	/* setup default XML documentation language */
 	snprintf(documentation_language, sizeof(documentation_language), default_documentation_language);
 
-	if (!(cfg = ast_config_load2("asterisk.conf", "" /* core can't reload */, cnfflags))) {
-		ast_log(LOG_ERROR, "No asterisk.conf? That cannot be good.\n");
-		return 1;
-	}
-
-	for (var = ast_variable_browse(cfg, "options"); var; var = var->next) {
-		if (!strcasecmp(var->name, "documentation_language")) {
-			if (!ast_strlen_zero(var->value)) {
-				snprintf(documentation_language, sizeof(documentation_language), "%s", var->value);
+	if ((cfg = ast_config_load2("asterisk.conf", "" /* core can't reload */, cnfflags))) {
+		for (var = ast_variable_browse(cfg, "options"); var; var = var->next) {
+			if (!strcasecmp(var->name, "documentation_language")) {
+				if (!ast_strlen_zero(var->value)) {
+					snprintf(documentation_language, sizeof(documentation_language), "%s", var->value);
+				}
 			}
 		}
+		ast_config_destroy(cfg);
 	}
-        ast_config_destroy(cfg);
 
 	/* initialize the XML library. */
 	ast_xml_init();