backport: fix crash due to uninited var when parsing IMAPServer.

-REF: <E1HFuIM-00041h-Nn@sc8-pr-cvs2.sourceforge.net>
This commit is contained in:
Oswald Buddenhagen 2007-02-10 15:41:32 +00:00
parent 43f23fb180
commit 9a0539868a

View File

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