]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/config.c
Calls to cdb_fetch()/cdb_next_item() now check ptr for NULL or non-NULL
[citadel.git] / citadel / server / config.c
index fc3d49ce75da654b7a91c2554db6600e6ef64d72..49ef9600c69bf58734b727c8087cb19a8960f9da 100644 (file)
@@ -374,7 +374,7 @@ char *CtdlGetConfigStr(char *key) {
 
        // Then look in the database.
        cdb = cdb_fetch(CDB_CONFIG, key, key_len);
-       if (cdb.len <= 0) {     // nope, not there either.
+       if (cdb.ptr == NULL) {  // nope, not there either.
                return(NULL);
        }