fix crash due to uninited var when parsing IMAPServer. Thanks to

CCMAIL: Antoine Reilles <tonio@NetBSD.org>
REF: <20070118182534.GA22288@arcelot.loria.fr>
This commit is contained in:
Oswald Buddenhagen 2007-02-10 15:37:46 +00:00
parent 023d3ee577
commit 625f592fb7

View File

@ -1689,6 +1689,7 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep, int *err )
*serverapp = server;
serverapp = &server->next;
store = 0;
*storep = 0;
} else if (!strcasecmp( "IMAPStore", cfg->cmd )) {
store = nfcalloc( sizeof(*store) );
store->gen.driver = &imap_driver;