X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fpushemail.c;h=92fd026b13d5f45fb9975252db923598f4f428d8;hb=HEAD;hp=2cdc91f53ea1287c44bc8de40f397b3160b03178;hpb=764d548427fda9981301c2f472f710a893251c36;p=citadel.git diff --git a/webcit/pushemail.c b/webcit/pushemail.c index 2cdc91f53..92fd026b1 100644 --- a/webcit/pushemail.c +++ b/webcit/pushemail.c @@ -13,9 +13,7 @@ void display_pushemail(void) WCTemplputParams SubTP; char mobnum[20]; - memset(&SubTP, 0, sizeof(WCTemplputParams)); - SubTP.Filter.ContextType = CTX_LONGVECTOR; - SubTP.Context = &vector; + StackContext(NULL, &SubTP, &vector, CTX_LONGVECTOR, 0, NULL); vector[0] = 16; /* Find any existing settings*/ @@ -89,6 +87,7 @@ void display_pushemail(void) output_headers(1, 1, 1, 0, 0, 0); DoTemplate(HKEY("prefs_pushemail"), NULL, &SubTP); wDumpContent(1); + UnStackContext(&SubTP); FreeStrBuf(&Buf); }