New config option: set smtp_advertise_starttls to nonzero to advertise STARTTLS in...
[citadel.git] / citadel / server / config.c
index 7e0db5bb4a5ccc6bbb528bdeca91e584dfd76296..7932ca81da570bd39034602cbf6e0340c6556485 100644 (file)
@@ -3,7 +3,7 @@
 // Copyright (c) 1987-2024 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or disclosure
-// are subject to the terms of the GNU General Public License, version 3.
+// is subject to the terms of the GNU General Public License, version 3.
 
 #include "sysdep.h"
 #include <stdlib.h>
@@ -311,7 +311,6 @@ void CtdlSetConfigStr(char *key, char *value) {
        Put(ctdlconfig, key, key_len, strdup(value), NULL);
 
        // Also write it to the config database
-
        int dbv_size = key_len + value_len + 2;
        char *dbv = malloc(dbv_size);
        strcpy(dbv, key);
@@ -372,7 +371,7 @@ char *CtdlGetConfigStr(char *key) {
 
        // Then look in the database.
        cdb = cdb_fetch(CDB_CONFIG, key, key_len);
-       if (cdb.ptr == NULL) {  // nope, not there either.
+       if (cdb.ptr == NULL) {                          // nope, not there either.
                return(NULL);
        }
 
@@ -439,7 +438,7 @@ char *CtdlGetSysConfig(char *sysconfname) {
        else {
                msg = CtdlFetchMessage(msgnum, 1);
                if (msg != NULL) {
-                       conf = strdup(msg->cm_fields[eMesageText]);
+                       conf = strdup(msg->cm_fields[eMessageText]);
                        CM_Free(msg);
                }
                else {